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 weeks ago | |
---|---|---|
.. | ||
test | 3 weeks ago | |
.npmignore | 3 weeks ago | |
LICENSE | 3 weeks ago | |
README.md | 3 weeks ago | |
camel2hyphen.js | 3 weeks ago | |
hyphen2camel.js | 3 weeks ago | |
index.js | 3 weeks ago | |
package.json | 3 weeks ago |
README.md
string-convert
Set of string conversion functions
Installation
npm install string-convert --save
Methods
hyphen2camel
Converts hyphenated string to camelcase string
Example:
var hyphen2camel = require('string-convert/hyphen2camel');
hyphen2camel('min-width'); // minWidth
hyphen2camel('-moz-transition'); // MozTransition
camel2hyphen
Converts camel case string to hyphenated string
Example:
var camel2hyphen = require('string-convert/camel2hyphen');
camel2hyphen('minWidth'); // min-width
camel2hyphen('MozTransition'); //-moz-transition