Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/akiran/string-convert
Set of string conversion functions
https://github.com/akiran/string-convert
Last synced: 2 months ago
JSON representation
Set of string conversion functions
- Host: GitHub
- URL: https://github.com/akiran/string-convert
- Owner: akiran
- License: mit
- Created: 2014-11-22T06:15:05.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-11-22T12:16:26.000Z (about 10 years ago)
- Last Synced: 2024-10-25T21:57:59.557Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 125 KB
- Stars: 7
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
string-convert
==============Set of string conversion functions
Installation
------------
npm install string-convert --saveMethods
-------### hyphen2camel
Converts hyphenated string to camelcase string
Example:
```javascript
var hyphen2camel = require('string-convert/hyphen2camel');
hyphen2camel('min-width'); // minWidth
hyphen2camel('-moz-transition'); // MozTransition
```### camel2hyphen
Converts camel case string to hyphenated string
Example:
```javascript
var camel2hyphen = require('string-convert/camel2hyphen');
camel2hyphen('minWidth'); // min-width
camel2hyphen('MozTransition'); //-moz-transition
```