{"name":"xcase","version":"2.0.1","description":"Blazingly fast recursive convertion to and from camelCase or PascalCase for Objects and Arrays","main":"es5/index","scripts":{"test":"npm run build && mocha","build":"rollup index.js -f es | babel --presets es2015 -o es5/index.js && browserify -s xcase -r ./es5/index.js -o dist/xcase.js && uglifyjs dist/xcase.js > dist/xcase.min.js","prepublish":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/encharm/xcase.git"},"keywords":["recursive","convertion","camelcase","keys","object","decamelize","camelize"],"author":{"name":"Damian Kaczmarek","email":"damian@codecharm.co.uk"},"license":"MIT","bugs":{"url":"https://github.com/encharm/xcase/issues"},"homepage":"https://github.com/encharm/xcase#readme","dependencies":{},"devDependencies":{"babel-cli":"^6.14.0","babel-preset-es2015":"^6.14.0","benchmark":"^2.1.1","bower":"^1.7.9","browserify":"^13.1.0","humps":"^1.1.0","lodash":"^4.15.0","mocha":"^3.0.2","rollup":"^0.41.4","uglify-js":"^2.7.3"},"gitHead":"78ec5849d61448ef2a590ea823afcbbbc39cade6","_id":"xcase@2.0.1","_shasum":"c7fa72caa0f440db78fd5673432038ac984450b9","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"rush","email":"rush@rushbase.net"},"dist":{"shasum":"c7fa72caa0f440db78fd5673432038ac984450b9","tarball":"http://registry-npm.ywwl.com/xcase/download/xcase-2.0.1.tgz","integrity":"sha512-UmFXIPU+9Eg3E9m/728Bii0lAIuoc+6nbrNUKaRPJOFp91ih44qqGlWtxMB6kXFrRD6po+86ksHM5XHCfk6iPw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD9xBVwV2r9DEHSGd8Z1pk5qnXpyk3Ts9pgwaCY7CxM+QIgCqfvf9MWk7ItOkoSsDv0BmVYfyGlCph98Q1zGzjdiCQ="}],"size":10090,"noattachment":false,"key":"/xcase/-/xcase-2.0.1.tgz"},"maintainers":[{"name":"rush","email":"rush@rushbase.net"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/xcase-2.0.1.tgz_1486565794438_0.9780726656317711"},"directories":{},"readme":"# xcase\nBlazingly fast recursive conversion to and from camelCase or PascalCase for objects and arrays and strings.\n\nIt supports both Node.js and Browser.\n\nxcase passes most of https://github.com/domchristie/humps tests, excluding only those with custom regexps and handler functions. So if you use `humps` and need something much faster than this is the right place.\n\n```\n> node benchmark.js\nxcase#camelize x 7,521,530 ops/sec ±0.18% (96 runs sampled)\nhumps#camelize x 870,637 ops/sec ±0.67% (95 runs sampled)\nlodash#camelCase x 784,445 ops/sec ±1.18% (92 runs sampled)\nFastest is xcase#camelize\nxcase#decamelize x 6,517,893 ops/sec ±0.43% (94 runs sampled)\nhumps#decamelize x 1,576,663 ops/sec ±0.65% (95 runs sampled)\nlodash#snakeCase x 659,930 ops/sec ±1.50% (95 runs sampled)\nFastest is xcase#decamelize\nxcase#camelizeKeys x 642,111 ops/sec ±1.16% (92 runs sampled)\nhumps#camelizeKeys x 126,551 ops/sec ±0.64% (91 runs sampled)\nlodash#reduce + camelCase x 120,886 ops/sec ±1.11% (92 runs sampled)\nFastest is xcase#camelizeKeys\nxcase#decamelizeKeys x 613,896 ops/sec ±1.13% (86 runs sampled)\nhumps#decamelizeKeys x 194,091 ops/sec ±0.61% (92 runs sampled)\nlodash#reduce + snakeCase: \nFastest is xcase#decamelizeKeys\nxcase#camelizeKeys (large object) x 678 ops/sec ±0.35% (94 runs sampled)\nxcase#camelizeKeys {inPlace: true} (large object) x 570 ops/sec ±1.41% (86 runs sampled)\nhumps#camelizeKeys (large object) x 163 ops/sec ±0.22% (82 runs sampled)\nFastest is xcase#camelizeKeys (large object)\nxcase#decamelizeKeys (large object) x 665 ops/sec ±0.68% (92 runs sampled)\nhumps#decamelizeKeys (large object) x 238 ops/sec ±0.63% (85 runs sampled)\nFastest is xcase#decamelizeKeys (large object)\n```\n\n## Installation\n\nNode: `npm install --save xcase`\n\nBrowser (JSPM): `jspm install npm:xcase`\n\nBrowser (Bower): `jspm install xcase`\n\nBrowser (Manual): Load https://raw.githubusercontent.com/encharm/xcase/master/dist/xcase.min.js and use global `xcase` object\n\n## Usage:\n\n```\nlet {camelizeKeys} = require('xcase');\nlet obj = camelizeKeys({\n  foo_bar: 1\n}); \n// obj is {fooBar: 1}\n```\n\n## API\n\n* `camelize(string, [options])` \n\n    change `\"foo_bar\"`/`\"foo bar\"`/`\"foo-bar\"` to `\"fooBar\"`\n\n* `camelizeKeys(objectOrArray, [options])`\n\n    change all keys according to `camelize`\n\n* `decamelize(string, [options])`\n\n    change `\"fooBar\"` to `\"foo_bar\"` and takes custom `separator` in options\n\n* `decamelizeKeys(objectOrArray, [options])`\n\n    change all keys according to `decamelize`\n\n* `pascalize(string, [opts])`\n\n    change `\"foo_bar\"`/`\"foo bar\"`/`\"foo-bar\"` to `\"FooBar\"`\n\n* `pascalizeKeys(objectOrArray, [options])`\n\n    change all keys according to `pascalize`\n\n* `depascalize(string, [opts])`\n\n    change `\"FooBar\"` to `\"foo_bar\"` and takes custom `separator` in options\n\n* `depascalizeKeys(objectOrArray, [options])`\n\n    change all keys according to `depascalize`\n\n\nOptions:\n* `inPlace: true` - to modify existing object (note, it's slower than default! v8 is smarter than us)\n* `separator` - for example `-` for `de**` variant of functions\n\n## License\n\nMIT\n\nCopyright (c) 2016, Code Charm Ltd\n","publish_time":1486565795098,"_cnpm_publish_time":1486565795098,"dist-tags":{"latest":"2.0.1"}}