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.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # Dedent
  2. An ES6 string tag that strips indentation from multi-line strings.
  3. ## Usage
  4. ```js
  5. import dedent from "dedent";
  6. function usageExample() {
  7. const first = dedent`A string that gets so long you need to break it over
  8. multiple lines. Luckily dedent is here to keep it
  9. readable without lots of spaces ending up in the string
  10. itself.`;
  11. const second = dedent`
  12. Leading and trailing lines will be trimmed, so you can write something like
  13. this and have it work as you expect:
  14. * how convenient it is
  15. * that I can use an indented list
  16. - and still have it do the right thing
  17. That's all.
  18. `;
  19. const third = dedent(`
  20. Wait! I lied. Dedent can also be used as a function.
  21. `);
  22. return first + "\n\n" + second + "\n\n" + third;
  23. }
  24. ```
  25. ```js
  26. > console.log(usageExample());
  27. ```
  28. ```
  29. A string that gets so long you need to break it over
  30. multiple lines. Luckily dedent is here to keep it
  31. readable without lots of spaces ending up in the string
  32. itself.
  33. Leading and trailing lines will be trimmed, so you can write something like
  34. this and have it work as you expect:
  35. * how convenient it is
  36. * that I can use an indented list
  37. - and still have it do the right thing
  38. That's all.
  39. Wait! I lied. Dedent can also be used as a function.
  40. ```
  41. ## License
  42. MIT