{"name":"decamelize","version":"3.2.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.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"8e6c4d82ebae2c60323b34c59e11f5d6ec35268e","bugs":{"url":"https://github.com/sindresorhus/decamelize/issues"},"homepage":"https://github.com/sindresorhus/decamelize#readme","_id":"decamelize@3.2.0","_nodeVersion":"8.15.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-4TgkVUsmmu7oCSyGBm5FvfMoACuoh9EOidm7V5/J2X2djAwwt57qb3F2KMP2ITqODTCSwb+YRV+0Zqrv18k/hw==","shasum":"84b8e8f4f8c579f938e35e2cc7024907e0090851","tarball":"http://registry-npm.ywwl.com/decamelize/download/decamelize-3.2.0.tgz","fileCount":5,"unpackedSize":4293,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcp8jcCRA9TVsSAnZWagAA+D4P/0qqHMuIFa0gPgXXeUT9\nR1oiaIzWwmhJ+py48D9UUg5rmZqAIRC7JBlJ7jyl9z/DwY/aDSk+ZqFoAHuf\n8F6Z4jzGRPKYCA14g05vmlkDzuj+0lwmjnkVQvVEW5ok5uqAA6FUqQzc/HoN\nPiYHNDT86IgWCGZKkvvAA0bvsUcSHWTKFWguDSP8u+UYqV1+p0fCTz6LMWUj\nJS4LAx2i+JL5StHK+ffaQ2cf4B+4QFOdMWdp3gWEpIymEcMT7eFQTpqrn22X\nEuwV7ok4xMB/nG/WOtvi/ksyZG4yT2b5ACGCoQ5hJuRegCj3bx1wUzWIz1ZM\nkg97W1MzG9tCEo/IvWEsyeWTfcu0YPLBAvy6ox9GHHHJqyiCetG4uhNNaVDQ\n6yFWpA2A+1Pre/YZxq16SalrnY2n2fE1PCJyN72W6npFHQ/wKj8a0u6fYFuu\n7BulTqUo0cFgrrSqnSkD6w2QYSFgkM/aNS9Sk8yakdR4/063WyV8QK1eREdG\nh/cuVLsoHeknLON+KMhkb195qo3GVGhoeq2z9HGAw9CzpfZhBuqVmKHBdj3C\nRx/8FKEZe3AC5+UwthCdPotnlf3CnlBdXC05836Ffrr1cHazZg6yXPbITF0u\n+19iGkQ8n5uPm5+SRxsBBuxHRxeBgCcX/TvmPPvqCHzDE0FeBxAPOFQsUeOj\nopfn\r\n=XBFt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICV/DHRCHOiyEi0da9IxilZAlkRle2Fw9ejQNvDYAfr4AiB8w4AwVT17D+CD9Eef4LUz5SQyJ8Npw17yk3z17feThg=="}],"size":2070,"noattachment":false,"key":"/decamelize/-/decamelize-3.2.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/decamelize_3.2.0_1554499803380_0.8141879282948965"},"_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":1554499803548,"_cnpm_publish_time":1554499803548,"dist-tags":{"latest":"7.0.0"}}