Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

readme.md 923B

123456789101112131415161718192021222324252627282930
  1. # strip-final-newline [![Build Status](https://travis-ci.com/sindresorhus/strip-final-newline.svg?branch=master)](https://travis-ci.com/sindresorhus/strip-final-newline)
  2. > Strip the final [newline character](https://en.wikipedia.org/wiki/Newline) from a string/buffer
  3. Can be useful when parsing the output of, for example, `ChildProcess#execFile`, as [binaries usually output a newline at the end](https://stackoverflow.com/questions/729692/why-should-text-files-end-with-a-newline). Normally, you would use `stdout.trim()`, but that would also remove newlines at the start and whitespace.
  4. ## Install
  5. ```
  6. $ npm install strip-final-newline
  7. ```
  8. ## Usage
  9. ```js
  10. const stripFinalNewline = require('strip-final-newline');
  11. stripFinalNewline('foo\nbar\n\n');
  12. //=> 'foo\nbar\n'
  13. stripFinalNewline(Buffer.from('foo\nbar\n\n')).toString();
  14. //=> 'foo\nbar\n'
  15. ```
  16. ## License
  17. MIT © [Sindre Sorhus](https://sindresorhus.com)