|
|
пре 2 месеци | |
|---|---|---|
| .. | ||
| test | пре 2 месеци | |
| .npmignore | пре 2 месеци | |
| LICENSE | пре 2 месеци | |
| README.md | пре 2 месеци | |
| camel2hyphen.js | пре 2 месеци | |
| hyphen2camel.js | пре 2 месеци | |
| index.js | пре 2 месеци | |
| package.json | пре 2 месеци | |
Set of string conversion functions
npm install string-convert --save
Converts hyphenated string to camelcase string
Example:
var hyphen2camel = require('string-convert/hyphen2camel');
hyphen2camel('min-width'); // minWidth
hyphen2camel('-moz-transition'); // MozTransition
Converts camel case string to hyphenated string
Example:
var camel2hyphen = require('string-convert/camel2hyphen');
camel2hyphen('minWidth'); // min-width
camel2hyphen('MozTransition'); //-moz-transition