{"name":"humanize-string","version":"3.1.0","keywords":["humanize","human","pretty","capitalize","uppercase","case","camelcase","dash","hyphen","underscore","string","text","convert"],"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"humanize-string@3.1.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/humanize-string#readme","bugs":{"url":"https://github.com/sindresorhus/humanize-string/issues"},"dist":{"shasum":"7d2ed6a94c2a89b475fc0fab10cd2396e26b991f","tarball":"http://registry-npm.ywwl.com/humanize-string/download/humanize-string-3.1.0.tgz","fileCount":5,"integrity":"sha512-wEtOOR3sT8nZ7W0WZwEXo68z2EA0kpcpjaN/ZXxpps9PDzZdX8+TAj+XOGKx2WkagP9mnhWtFpfMNSd2WAhiIQ==","signatures":[{"sig":"MEQCIF95mI8TL4bphKPnqCzaj/VioCRRW4TT4xPpuKVeLaGFAiAqSUiQtGJiS24K6GLneEPV9TgFjN4p+c3J59SMQg0KTA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4410,"size":2017,"noattachment":false,"key":"/humanize-string/-/humanize-string-3.1.0.tgz"},"type":"module","types":"./index.d.ts","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"exports":"./index.js","funding":"https://github.com/sponsors/sindresorhus","gitHead":"13fa22e71afe5ff438d2af25f6c7fd01ad055d1b","scripts":{"test":"xo && ava && tsd"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/humanize-string.git","type":"git"},"_npmVersion":"10.9.2","description":"Convert a camelized/dasherized/underscored string into a humanized one: `fooBar-Baz_Faz` → `Foo bar baz faz`","directories":{},"sideEffects":false,"_nodeVersion":"20.19.1","dependencies":{"decamelize":"^6.0.0"},"_hasShrinkwrap":false,"devDependencies":{"xo":"^0.45.0","ava":"^3.15.0","tsd":"^0.18.0"},"_npmOperationalInternal":{"tmp":"tmp/humanize-string_3.1.0_1757664874516_0.05241591836500925","host":"s3://npm-registry-packages-npm-production"},"readme":"# humanize-string\n\n> Convert a camelized/dasherized/underscored string into a humanized one\n> Example: `fooBar-Baz_Faz` → `Foo bar baz faz`\n\n## Install\n\n```sh\nnpm install humanize-string\n```\n\n## Usage\n\n```js\nimport humanizeString from 'humanize-string';\n\nhumanizeString('fooBar');\n//=> 'Foo bar'\n\nhumanizeString('foo-bar');\n//=> 'Foo bar'\n\nhumanizeString('foo_bar');\n//=> 'Foo bar'\n```\n\n## API\n\n### humanizeString(input, options?)\n\n#### input\n\nType: `string`\n\nThe string to humanize.\n\n#### options\n\nType: `object`\n\n##### preserveCase\n\nType: `boolean`\\\nDefault: `false`\n\nPreserve the original case instead of lowercasing.\n\n```js\nimport humanizeString from 'humanize-string';\n\nhumanizeString('The-NetApp-Guide-to-Kubernetes');\n//=> 'The net app guide to kubernetes'\n\nhumanizeString('The-NetApp-Guide-to-Kubernetes', {preserveCase: true});\n//=> 'The NetApp Guide to Kubernetes'\n```\n\n## Related\n\n- [camelcase](https://github.com/sindresorhus/camelcase) - Convert a dash/dot/underscore/space separated string to camelcase\n","publish_time":1757664874680,"_cnpm_publish_time":1757664874680,"dist-tags":{"latest":"4.0.0"}}