{"xo":[{"files":"test.js","rules":{"node-test/no-conditional-assertion":"off"}}],"_id":"decamelize@7.0.0","bugs":{"url":"https://github.com/sindresorhus/decamelize/issues"},"dist":{"shasum":"c61376d91a50cae8459db06701ad8cd5b2648770","tarball":"http://registry-npm.ywwl.com/decamelize/download/decamelize-7.0.0.tgz","fileCount":5,"integrity":"sha512-uT/0KzZIx9u4b5vW3HLWtSYwjLTuY2QFVY3xNmfXXUmTqnfgzfT8DEA2gY93go5sXEjnbqP66KcURdVxm0rDXA==","signatures":[{"sig":"MEUCIQCADc26WScMB5ETqptxUid0Wl/iC8Ctxtvj6kVAjDjbLwIgcNioPLyr/IbyJ0n1x7f9RdCZ6y52sH/Tqsf64asayzs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQD3/KNkKRJZpJoQJtV/IoEJfTRGOXZGBpC4+7tlaWtJ8QIgEuKv3ZUzBcGxbNDnDRD7OY9T+N6HFkeZiV9bPREB9pg="}],"unpackedSize":8769,"size":3458,"noattachment":false,"key":"/decamelize/-/decamelize-7.0.0.tgz"},"name":"decamelize","type":"module","types":"./index.d.ts","author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"engines":{"node":">=22"},"exports":{"types":"./index.d.ts","default":"./index.js"},"funding":"https://github.com/sponsors/sindresorhus","gitHead":"48866469ca1793e1f163a964fc77e839f5038a3f","license":"MIT","scripts":{"test":"xo && node --test test.js && nz"},"version":"7.0.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"homepage":"https://github.com/sindresorhus/decamelize#readme","keywords":["decamelcase","camelcase","lowercase","case","dash","hyphen","string","text","convert"],"repository":{"url":"git+https://github.com/sindresorhus/decamelize.git","type":"git"},"_npmVersion":"12.2.0","description":"Convert a camelized string into a lowercased one with a custom separator: unicornRainbow → unicorn_rainbow","directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"sideEffects":false,"_nodeVersion":"26.11.1","_hasShrinkwrap":false,"devDependencies":{"nz":"^0.1.0","xo":"^5.0.1","typescript":"^6.0.3"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/decamelize_7.0.0_1791918823884_0.5024053995661315"},"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\nPlural acronyms are kept together at the end of a word: `userIDs` → `user_ids`. Ambiguous endings such as `exportPDFAs` are treated as plural acronyms.\n\n#### input\n\nType: `string`\n\n#### options\n\nType: `object`\n\n##### separator\n\nType: `string`\\\nDefault: `'_'`\n\nThe character or string used to separate words.\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\n- [camelcase](https://github.com/sindresorhus/camelcase) - The inverse of this package\n- [decamelize-keys](https://github.com/sindresorhus/decamelize-keys) - Convert object keys from camel case\n","publish_time":1791918823959,"_cnpm_publish_time":1791918823959,"dist-tags":{"latest":"7.0.0"}}