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 906B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # detect-newline [![Build Status](https://travis-ci.org/sindresorhus/detect-newline.svg?branch=master)](https://travis-ci.org/sindresorhus/detect-newline)
  2. > Detect the dominant newline character of a string
  3. ## Install
  4. ```
  5. $ npm install detect-newline
  6. ```
  7. ## Usage
  8. ```js
  9. const detectNewline = require('detect-newline');
  10. detectNewline('foo\nbar\nbaz\r\n');
  11. //=> '\n'
  12. ```
  13. ## API
  14. ### detectNewline(string)
  15. Returns the detected newline or `undefined` when no newline character is found.
  16. ### detectNewline.graceful(unknown)
  17. Returns the detected newline or `\n` when no newline character is found or the input is not a string.
  18. ## Related
  19. - [detect-newline-cli](https://github.com/sindresorhus/detect-newline-cli) - CLI for this module
  20. - [detect-indent](https://github.com/sindresorhus/detect-indent) - Detect the indentation of code
  21. ## License
  22. MIT © [Sindre Sorhus](https://sindresorhus.com)