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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. # longest-streak
  2. [![Build][build-badge]][build]
  3. [![Coverage][coverage-badge]][coverage]
  4. [![Downloads][downloads-badge]][downloads]
  5. [![Size][size-badge]][size]
  6. Count the longest repeating streak of a character.
  7. ## Install
  8. [npm][]:
  9. ```sh
  10. npm install longest-streak
  11. ```
  12. ## Use
  13. ```js
  14. var longestStreak = require('longest-streak')
  15. longestStreak('` foo `` bar `', '`') // => 2
  16. ```
  17. ## API
  18. ### `longestStreak(value, character)`
  19. Get the count of the longest repeating streak of `character` in `value`.
  20. ###### Parameters
  21. * `value` (`string`) — Content, coerced to string.
  22. * `character` (`string`) — Single character to look for.
  23. ###### Returns
  24. `number` — Number of characters at the place where `character` occurs in
  25. its longest streak in `value`.
  26. ###### Throws
  27. * `Error` — when `character` is not a single character string.
  28. ## License
  29. [MIT][license] © [Titus Wormer][author]
  30. <!-- Definitions -->
  31. [build-badge]: https://img.shields.io/travis/wooorm/longest-streak.svg
  32. [build]: https://travis-ci.org/wooorm/longest-streak
  33. [coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/longest-streak.svg
  34. [coverage]: https://codecov.io/github/wooorm/longest-streak
  35. [downloads-badge]: https://img.shields.io/npm/dm/longest-streak.svg
  36. [downloads]: https://www.npmjs.com/package/longest-streak
  37. [size-badge]: https://img.shields.io/bundlephobia/minzip/longest-streak.svg
  38. [size]: https://bundlephobia.com/result?p=longest-streak
  39. [npm]: https://docs.npmjs.com/cli/install
  40. [license]: license
  41. [author]: https://wooorm.com