{"name":"title-case","version":"4.1.2","description":"Transform a string into title case following English rules","keywords":["title","case","english","capital","sentence","convert","transform"],"homepage":"https://github.com/blakeembrey/change-case/tree/master/packages/title-case#readme","bugs":{"url":"https://github.com/blakeembrey/change-case/issues"},"repository":{"type":"git","url":"git://github.com/blakeembrey/change-case.git"},"license":"MIT","author":{"name":"Blake Embrey","email":"hello@blakeembrey.com","url":"http://blakeembrey.me"},"type":"module","exports":{".":"./dist/index.js"},"types":"./dist/index.d.ts","scripts":{"bench":"vitest bench","build":"ts-scripts build","format":"ts-scripts format","prepublishOnly":"npm run build","specs":"ts-scripts specs","test":"ts-scripts test"},"publishConfig":{"access":"public"},"_id":"title-case@4.1.2","gitHead":"907cf6f8c4ce5352cb418ddb1494f3c70b2d1071","_nodeVersion":"21.0.0","_npmVersion":"10.2.0","dist":{"integrity":"sha512-K9Mmf3WWSF0DCAMLk6so4EFyxhh9puTZSnfkpFnp+EGLewLQTYOeYKDXE4PCFU5dUmrqXwSVzZXbpJ6gFIm9Ow==","shasum":"76d4c0a50b1a49d17c30542a8700aa2d3251297f","tarball":"http://registry-npm.ywwl.com/title-case/download/title-case-4.1.2.tgz","fileCount":5,"unpackedSize":7498,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDI3MvG/LYMAWm7P24/s28cW6hkI+Cgj/QWY1+RzWvGlAiB/8MaJjxLaqrDY7hQZLMGOGhMoYqo5ZBrd0yIf40HQsw=="}],"size":2759,"noattachment":false,"key":"/title-case/-/title-case-4.1.2.tgz"},"_npmUser":{"name":"blakeembrey","email":"hello@blakeembrey.com"},"directories":{},"maintainers":[{"name":"blakeembrey","email":"hello@blakeembrey.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/title-case_4.1.2_1697837568407_0.813531433149846"},"_hasShrinkwrap":false,"readme":"# Title Case\n\n> Transform a string into [title case](https://en.wikipedia.org/wiki/Letter_case#Title_case) following English rules.\n\n## Installation\n\n```\nnpm install title-case --save\n```\n\n## Usage\n\n```js\nimport { titleCase } from \"title-case\";\n\ntitleCase(\"string\"); //=> \"String\"\ntitleCase(\"follow step-by-step instructions\"); //=> \"Follow Step-by-Step Instructions\"\n```\n\n### Options\n\n- `locale?: string | string[]` Locale used for `toLocaleUpperCase` during case transformation (default: `undefined`)\n- `sentenceCase?: boolean` Only capitalize the first word of each sentence (default: `false`)\n- `sentenceTerminators?: Set<string>` Set of characters to consider a new sentence under sentence case behavior (e.g. `.`, default: `SENTENCE_TERMINATORS`)\n- `smallWords?: Set<string>` Set of words to keep lower-case when `sentenceCase === false` (default: `SMALL_WORDS`)\n- `titleTerminators?: Set<string>` Set of characters to consider a new sentence under title case behavior (e.g. `:`, default: `TITLE_TERMINATORS`)\n- `wordSeparators?: Set<string>` Set of characters to consider a new word for capitalization, such as hyphenation (default: `WORD_SEPARATORS`)\n\n## TypeScript and ESM\n\nThis package is a [pure ESM package](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c) and ships with TypeScript definitions. It cannot be `require`'d or used with CommonJS module resolution in TypeScript.\n\n## License\n\nMIT\n","publish_time":1697837568619,"_cnpm_publish_time":1697837568619,"dist-tags":{"latest":"4.3.2"}}