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 1.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # trim-newlines [![Build Status](https://travis-ci.org/sindresorhus/trim-newlines.svg?branch=master)](https://travis-ci.org/sindresorhus/trim-newlines)
  2. > Trim [newlines](https://en.wikipedia.org/wiki/Newline) from the start and/or end of a string
  3. ## Install
  4. ```
  5. $ npm install trim-newlines
  6. ```
  7. ## Usage
  8. ```js
  9. const trimNewlines = require('trim-newlines');
  10. trimNewlines('\n🦄\r\n');
  11. //=> '🦄'
  12. trimNewlines.start('\n🦄\r\n');
  13. //=> '🦄\r\n'
  14. trimNewlines.end('\n🦄\r\n');
  15. //=> '\n🦄'
  16. ```
  17. ## API
  18. ### trimNewlines(string)
  19. Trim from the start and end of a string.
  20. ### trimNewlines.start(string)
  21. Trim from the start of a string.
  22. ### trimNewlines.end(string)
  23. Trim from the end of a string.
  24. ## Related
  25. - [trim-left](https://github.com/sindresorhus/trim-left) - Similar to `String#trim()` but removes only whitespace on the left
  26. - [trim-right](https://github.com/sindresorhus/trim-right) - Similar to `String#trim()` but removes only whitespace on the right.
  27. ## License
  28. MIT © [Sindre Sorhus](https://sindresorhus.com)