{"name":"decamelize","version":"4.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":"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":"b445ed47a5548e2ba8fe41889807d17879faa7c5","bugs":{"url":"https://github.com/sindresorhus/decamelize/issues"},"homepage":"https://github.com/sindresorhus/decamelize#readme","_id":"decamelize@4.0.0","_nodeVersion":"10.17.0","_npmVersion":"6.11.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==","shasum":"aa472d7bf660eb15f3494efd531cab7f2a709837","tarball":"http://registry-npm.ywwl.com/decamelize/download/decamelize-4.0.0.tgz","fileCount":5,"unpackedSize":3999,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeLQGPCRA9TVsSAnZWagAAewcP/29QrArSrMCh3ycrFV6z\nfpueB+5LFzA9JAp5EXutgfM8cRgRWkQJnC/6QvCEhTNt3mfxR2+X7c8/zk90\nY14eQRcWq7d6kQxoCJf2KvNn3LUYDvDA5cOpMPyAgLTF7Zg/Tp2Ad8g3UTyc\nbPePFAAregIhDlfz9gqIPS8hw367jk3RHbfGD67HB2ozDtDnba6HOeoaRxvs\ng8RhdSHAW7WGc0agLiz5r4MHjx7aq6SxXJ8sNr2PCoWGK24KozItoXpfK8iH\nRYST9BtI/HWaUTXeXp344fxoEEvAk9TOgpjRRH6uBvRBXxT5S/YuyNUdpAbz\n3NpzIOzkbWNI2Q5h8oq2yCYztC8qPhkLpuuccgtPq6wpPdiCPNryUqxeZTZD\nRl9d/obzLRKg7JE8FQSQKGgZO75NR83ARPidZFFzkfmHHgYUxpyI/aPus/yg\nZweMp1UOGwQb4o2S7UvaW9Dq2rFcj2TvffOjhvCWKEqzvyy+duH7NTvx5UQL\nF+/Uwsti6fQjN/cO8Od0vl6OgaUxntNPMemADNuFORa2+nhnYixZDD17IHPm\nwWFBD+E+Ff9PTFY/xySwV0KG9DvUAmr1GLUiB7b+ZzrCkg+APv6JnIS/dhkU\njT4NHimKWZc2i5E+EhXLoCnnEZTaOad+krLYAHCO43m5+HzqKMRB9t90Hrr4\nNFhU\r\n=d1Fq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCtrOW95WWmqN+AV1a1QTEMK1TH7W+d9wwk9GXd2ju7HwIhALveITnlXv10quyPr52CRfQuTPbA5W9NAQJFhOLuhEiF"}],"size":2060,"noattachment":false,"key":"/decamelize/-/decamelize-4.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/decamelize_4.0.0_1580007823424_0.08047740567087791"},"_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":1580007823570,"_cnpm_publish_time":1580007823570,"dist-tags":{"latest":"7.0.0"}}