mirror of
https://github.com/abrendan/MicDropMessages.git
synced 2025-08-25 14:02:03 +02:00
Initial commit
This commit is contained in:
62
node_modules/camelize/readme.markdown
generated
vendored
Normal file
62
node_modules/camelize/readme.markdown
generated
vendored
Normal file
@@ -0,0 +1,62 @@
|
||||
# camelize
|
||||
|
||||
recursively transform key strings to camel-case
|
||||
|
||||
[](http://travis-ci.org/substack/camelize)
|
||||
|
||||
[](http://ci.testling.com/substack/camelize)
|
||||
|
||||
# example
|
||||
|
||||
``` js
|
||||
var camelize = require('camelize');
|
||||
var obj = {
|
||||
fee_fie_foe: 'fum',
|
||||
beep_boop: [
|
||||
{ 'abc.xyz': 'mno' },
|
||||
{ 'foo-bar': 'baz' }
|
||||
]
|
||||
};
|
||||
var res = camelize(obj);
|
||||
console.log(JSON.stringify(res, null, 2));
|
||||
```
|
||||
|
||||
output:
|
||||
|
||||
```
|
||||
{
|
||||
"feeFieFoe": "fum",
|
||||
"beepBoop": [
|
||||
{
|
||||
"abcXyz": "mno"
|
||||
},
|
||||
{
|
||||
"fooBar": "baz"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
# methods
|
||||
|
||||
``` js
|
||||
var camelize = require('camelize')
|
||||
```
|
||||
|
||||
## camelize(obj)
|
||||
|
||||
Convert the key strings in `obj` to camel-case recursively.
|
||||
|
||||
# install
|
||||
|
||||
With [npm](https://npmjs.org) do:
|
||||
|
||||
```
|
||||
npm install camelize
|
||||
```
|
||||
|
||||
To use in the browser, use [browserify](http://browserify.org).
|
||||
|
||||
# license
|
||||
|
||||
MIT
|
Reference in New Issue
Block a user