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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # decamelize-keys [![Build Status](https://travis-ci.org/dsblv/decamelize-keys.svg?branch=master)](https://travis-ci.org/dsblv/decamelize-keys)
  2. > Convert object keys from camelCase to lowercase with a custom separator using [`decamelize`](https://github.com/sindresorhus/decamelize)
  3. *This project was forked from [`camelcase-keys`](https://github.com/sindresorhus/camelcase-keys) and converted to do the opposite*
  4. ## Install
  5. ```sh
  6. $ npm install --save decamelize-keys
  7. ```
  8. ## Usage
  9. ```js
  10. const decamelizeKeys = require('decamelize-keys');
  11. decamelizeKeys({fooBar: true}, '-');
  12. //=> {'foo-bar': true}
  13. ```
  14. ## API
  15. ### decamelizeKeys(input, [separator], [options])
  16. ### input
  17. Type: `object`
  18. *Required*
  19. Object to decamelize.
  20. ### separator
  21. Type: `string`
  22. Default: `_`
  23. A string to insert between words.
  24. ### options
  25. Type: `object`
  26. #### separator
  27. Type: `string`
  28. Default: `_`
  29. Alternative way to specify [separator](#separator).
  30. #### exclude
  31. Type: `array`
  32. Default: `[]`
  33. Exclude keys from being decamelized.
  34. ## Related
  35. See [`camelcase-keys`](https://github.com/sindresorhus/camelcase-keys) for the inverse.
  36. ## License
  37. MIT © [Sindre Sorhus](http://sindresorhus.com), [Dmirty Sobolev](https://github.com/dsblv)