|
1 yıl önce | |
---|---|---|
.. | ||
test | 1 yıl önce | |
.npmignore | 1 yıl önce | |
LICENSE | 1 yıl önce | |
README.md | 1 yıl önce | |
camel2hyphen.js | 1 yıl önce | |
hyphen2camel.js | 1 yıl önce | |
index.js | 1 yıl önce | |
package.json | 1 yıl önce |
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