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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # redent [![Build Status](https://travis-ci.org/sindresorhus/redent.svg?branch=master)](https://travis-ci.org/sindresorhus/redent)
  2. > [Strip redundant indentation](https://github.com/sindresorhus/strip-indent) and [indent the string](https://github.com/sindresorhus/indent-string)
  3. ## Install
  4. ```
  5. $ npm install redent
  6. ```
  7. ## Usage
  8. ```js
  9. const redent = require('redent');
  10. redent('\n foo\n bar\n', 1);
  11. //=> '\n foo\n bar\n'
  12. ```
  13. ## API
  14. ### redent(string, [count], [options])
  15. #### string
  16. Type: `string`
  17. The string to normalize indentation.
  18. #### count
  19. Type: `number`<br>
  20. Default: `0`
  21. How many times you want `options.indent` repeated.
  22. #### options
  23. Type: `object`
  24. ##### indent
  25. Type: `string`<br>
  26. Default: `' '`
  27. The string to use for the indent.
  28. ##### includeEmptyLines
  29. Type: `boolean`<br>
  30. Default: `false`
  31. Also indent empty lines.
  32. ## License
  33. MIT © [Sindre Sorhus](https://sindresorhus.com)