{"name":"decamelize","version":"5.0.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"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"engines":{"node":">=10"},"scripts":{"test":"xo && ava && tsd"},"keywords":["decamelize","decamelcase","camelcase","lowercase","case","dash","hyphen","string","text","convert"],"devDependencies":{"ava":"^2.4.0","tsd":"^0.11.0","xo":"^0.24.0"},"gitHead":"d44a15cace3c4d5b684e82159f398ee4cde77383","bugs":{"url":"https://github.com/sindresorhus/decamelize/issues"},"homepage":"https://github.com/sindresorhus/decamelize#readme","_id":"decamelize@5.0.0","_nodeVersion":"10.22.1","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-U75DcT5hrio3KNtvdULAWnLiAPbFUC4191ldxMmj4FA/mRuBnmDwU0boNfPyFRhnan+Jm+haLeSn3P0afcBn4w==","shasum":"88358157b010ef133febfd27c18994bd80c6215b","tarball":"http://registry-npm.ywwl.com/decamelize/download/decamelize-5.0.0.tgz","fileCount":5,"unpackedSize":6778,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf+/+4CRA9TVsSAnZWagAA3w0P/19lSW1g15uBBEh7srf/\nYh69bDpU868+HqYNAY16nwoZqomrQTBVkar/MMJ+Ry4JmbJrfAMukShmHsS4\nNCiO9s2UEFw9fXqMmQIc9QkgiLyXt0yvNAUg0nuLLyfwt5140XMLYIJJh0va\n0nQRkEwDNFRwQu/fq3owd62acFzlvwZ/G3jQmJlbz/8S+RbDAFpMxpQlIfb0\nI7va1ERTGFzgnicdtK93+7OAzs16fY+5BZj9Sy2REBEUVr3Lp9CbjZ4G1uS5\nLmVHRD4n9f9r+m64q/TgR69faEJr+/1PUV8nfLJfOB0OCfvWgi+cG7r/ASgQ\ni+s3alcWou7x7TTh8oGQKwnXrpKdja9z796inyHonhjZrZ5evVYbH1drHmTy\n9+sK6EsxCB1Yl9bwQmdOZwxL102TfKnpifAcDg+A/equ2TjVy8FrzcVbu5rz\ndVJd3zDw0sMC6xkYKc03jL++IWdEnMCjojx83whhDZ49DiZ7tR4YzheVubQn\n2GNErmBxd9Ajcjrp03kLWntNhGTao7g2FsiRMXdLEohwn8Z114/mTu/unBu5\nY8PhACOIVkzEG1ZCphmiVzDIVmdLczd/20jG2LNb+P6u9xi/6RXR0oHQNIVv\nishooThHBkzR5c54+WbyD/AkFm6hdjowUT87/bFmPCJN3G4sxO7wnmoBMdpM\nZIa2\r\n=j0h8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDFYOuujelCh487YpSg1S+etzxn6BM+T8uPiPigHz1KHwIhAONjmjTj1nq1N4wb46ZyShS89ml3bbyhUx+CmcHm2r8+"}],"size":2712,"noattachment":false,"key":"/decamelize/-/decamelize-5.0.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/decamelize_5.0.0_1610350520046_0.5371615806940657"},"_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":1610350520182,"_cnpm_publish_time":1610350520182,"dist-tags":{"latest":"7.0.0"}}