|
vor 2 Jahren | |
---|---|---|
.. | ||
test | vor 2 Jahren | |
.npmignore | vor 2 Jahren | |
LICENSE | vor 2 Jahren | |
README.md | vor 2 Jahren | |
camel2hyphen.js | vor 2 Jahren | |
hyphen2camel.js | vor 2 Jahren | |
index.js | vor 2 Jahren | |
package.json | vor 2 Jahren |
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