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.

пре 3 година
12345678910111213141516171819202122232425262728293031323334353637
  1. string-convert
  2. ==============
  3. Set of string conversion functions
  4. Installation
  5. ------------
  6. npm install string-convert --save
  7. Methods
  8. -------
  9. ### hyphen2camel
  10. Converts hyphenated string to camelcase string
  11. Example:
  12. ```javascript
  13. var hyphen2camel = require('string-convert/hyphen2camel');
  14. hyphen2camel('min-width'); // minWidth
  15. hyphen2camel('-moz-transition'); // MozTransition
  16. ```
  17. ### camel2hyphen
  18. Converts camel case string to hyphenated string
  19. Example:
  20. ```javascript
  21. var camel2hyphen = require('string-convert/camel2hyphen');
  22. camel2hyphen('minWidth'); // min-width
  23. camel2hyphen('MozTransition'); //-moz-transition
  24. ```