{"name":"decamelize","version":"3.1.0","description":"Convert a camelized string into a lowercased one with a custom separator: unicornRainbow → unicorn_rainbow","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/decamelize.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava && tsd"},"keywords":["decamelize","decamelcase","camelcase","lowercase","case","dash","hyphen","string","str","text","convert"],"dependencies":{"xregexp":"^4.2.4"},"devDependencies":{"ava":"^1.2.1","tsd":"^0.7.0","xo":"^0.24.0"},"gitHead":"18fe3cf56bcac7babc0cb0fa0486c4131057e262","bugs":{"url":"https://github.com/sindresorhus/decamelize/issues"},"homepage":"https://github.com/sindresorhus/decamelize#readme","_id":"decamelize@3.1.0","_nodeVersion":"11.11.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-fgHaR077tSDdzV2ExQwtJ8Kx8LYOvnf1cm5JaQ1ESeGgO8CTH7wv3202zJEg1YND0Fx7WQDxeuDPdAPMERXBEg==","shasum":"81cd3f2e9911b8874e290d249da2c366453641d4","tarball":"http://registry-npm.ywwl.com/decamelize/download/decamelize-3.1.0.tgz","fileCount":5,"unpackedSize":3985,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJck7JCCRA9TVsSAnZWagAASUgQAI8F6PBGFsSg+mw09tYD\nXhJRSRkFd5hkXvwjL15fzZpKMfTyeEbAp7E6rLR7owk/NJkulSNZxPX7zi8G\niN74FRVX3AcW1f2oHMNxiTbwZtkG9meohThqa43VYc6mpVXk3uqLm86DPowt\nrlVb//ll/Tvfd+j20LNLCEhmp1/6FYA9EUwnzBJ3ReLtsU9ocQ2kD0SA2lZA\nYXw3I8+PN9Y2l+Q6kPk1W5i4jNII7cWQ4kpg/lOt/2TexKya+lyPQfvx4LrI\nKiha4fsZiaMlSR9jxeQFI4h9BioN9b9ZlMWUPygMiHxEubdRS3rluIhQDVKg\nh8O+FoLDlbcOOBf/LIb97KmpuaAajWUBdQwshp/dcuVQ9aqAfOXuF5S5U4/7\nqCUc7yCj5TlN4nB20Yy8RPMrZbFYRhTy/X7zgyWBsDwIrb09tbP+IsruWg98\ne6xWwexvvVDHm/xInWX/kqyIOvMFPRmqA697wNJ4NCrl8q7Ox4XAGZnVXpXe\nR5GlR5Gk2wFYtkGFyEZ0Oo15NsLqQuC0LivNIbGAvIH+iFsnnjAVpObpoSng\nu3+kNq91wspTVrNfGt1nDucnGnUN0v99kZqW8gEEsSV3Av0KGifLVfkwtiST\nlClJWYYf3JlM6loN4dSxQ7hzY3vJWwTii3YsJ/w2QHZyYr8Rl1EOKwJntXlr\nnBMn\r\n=KsSj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBQlsWSR0Im2BwwXIqM7TpVMdzmtEf4YTjTOtc3vsXCrAiBSM90Mt5WgA/pB4kXmYqYUFVrQ4fZ/JLnCwA+bLAaifg=="}],"size":1983,"noattachment":false,"key":"/decamelize/-/decamelize-3.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/decamelize_3.1.0_1553183298266_0.32791109364419646"},"_hasShrinkwrap":false,"readme":"# decamelize\n\n> Convert a camelized string into a lowercased one with a custom separator\\\n> Example: `unicornRainbow` → `unicorn_rainbow`\n\nIf you use this on untrusted user input, don't forget to limit the length to something reasonable.\n\n## Install\n\n```sh\nnpm install decamelize\n```\n\n## Usage\n\n```js\nimport decamelize from 'decamelize';\n\ndecamelize('unicornRainbow');\n//=> 'unicorn_rainbow'\n\ndecamelize('unicornRainbow', {separator: '-'});\n//=> 'unicorn-rainbow'\n\ndecamelize('testGUILabel', {preserveConsecutiveUppercase: true});\n//=> 'test_GUI_label'\n\ndecamelize('testGUILabel', {preserveConsecutiveUppercase: false});\n//=> 'test_gui_label'\n```\n\n## API\n\n### decamelize(input, options?)\n\n#### input\n\nType: `string`\n\n#### options\n\nType: `object`\n\n##### separator\n\nType: `string`\\\nDefault: `'_'`\n\nCharacter or string inserted to separate words in `string`.\n\n```js\nimport decamelize from 'decamelize';\n\ndecamelize('unicornRainbow');\n//=> 'unicorn_rainbow'\n\ndecamelize('unicornRainbow', {separator: '-'});\n//=> 'unicorn-rainbow'\n```\n\n##### preserveConsecutiveUppercase\n\nType: `boolean`\\\nDefault: `false`\n\nPreserve sequences of uppercase characters.\n\n```js\nimport decamelize from 'decamelize';\n\ndecamelize('testGUILabel');\n//=> 'test_gui_label'\n\ndecamelize('testGUILabel', {preserveConsecutiveUppercase: true});\n//=> 'test_GUI_label'\n```\n\n## Related\n\nSee [`camelcase`](https://github.com/sindresorhus/camelcase) for the inverse.\n\n---\n\n<div align=\"center\">\n\t<b>\n\t\t<a href=\"https://tidelift.com/subscription/pkg/npm-decamelize?utm_source=npm-decamelize&utm_medium=referral&utm_campaign=readme\">Get professional support for this package with a Tidelift subscription</a>\n\t</b>\n\t<br>\n\t<sub>\n\t\tTidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.\n\t</sub>\n</div>\n","publish_time":1553183298366,"_cnpm_publish_time":1553183298366,"dist-tags":{"latest":"7.0.0"}}