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

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # min-indent [![Build Status](https://travis-ci.org/thejameskyle/min-indent.svg?branch=master)](https://travis-ci.org/thejameskyle/min-indent)
  2. > Get the shortest leading whitespace from lines in a string
  3. The line with the least number of leading whitespace, ignoring empty lines, determines the number.
  4. Useful for removing redundant indentation.
  5. ## Install
  6. ```
  7. $ npm install --save min-indent
  8. ```
  9. ## Usage
  10. ```js
  11. const minIndent = require('min-indent');
  12. const str = '\tunicorn\n\t\tcake';
  13. /*
  14. unicorn
  15. cake
  16. */
  17. minIndent(str); // 1
  18. ```
  19. ## Related
  20. - [strip-indent](https://github.com/sindresorhus/strip-indent) - Strip leading whitespace from each line in a string
  21. - [strip-indent-cli](https://github.com/sindresorhus/strip-indent-cli) - CLI for this module
  22. - [indent-string](https://github.com/sindresorhus/indent-string) - Indent each line in a string
  23. ## License
  24. MIT © [James Kyle](https://thejameskyle.com)