{"name":"xcase","version":"1.0.0","description":"Blazingly fast recursive convertion to and from camelCase or PascalCase for Objects and Arrays","main":"index","scripts":{"test":"npm test","install":"node-gyp rebuild"},"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","gypfile":true,"dependencies":{"nan":"^2.4.0"},"devDependencies":{"benchmark":"^2.1.1","humps":"^1.1.0","mocha":"^3.0.2"},"gitHead":"a3523e1f4a204330cf50d8039673467a9e6c8c4c","_id":"xcase@1.0.0","_shasum":"e3c41531cfb745f95ac00584bc6f6009da917a24","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.5.0","_npmUser":{"name":"rush","email":"rush@rushbase.net"},"dist":{"shasum":"e3c41531cfb745f95ac00584bc6f6009da917a24","tarball":"http://registry-npm.ywwl.com/xcase/download/xcase-1.0.0.tgz","integrity":"sha512-kcTjnwluKrOZpakL/JeY/QS7APkaR0GjyCLoOYUdOgOlZaZkP2/E4EOb7uA07kZx4E5UiaGqP41qDd1aAJyLtQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDeOypQTZE0ly/dkJMZez+y7WvuxSweHT1dN+I0F3LOnQIgXxDobDaA8Nyp3kmxBJXY12jkp5jnd704uAv0BiidRro="}],"size":7076,"noattachment":false,"key":"/xcase/-/xcase-1.0.0.tgz"},"maintainers":[{"name":"rush","email":"rush@rushbase.net"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/xcase-1.0.0.tgz_1473821884662_0.10665947664529085"},"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":1473821885437,"_cnpm_publish_time":1473821885437,"dist-tags":{"latest":"2.0.1"}}