camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Title Case, Sentence case — correct on the tricky inputs (acronyms like XMLHttpRequest, numbers like v2, mixed separators). One tiny typed package with a shared words() splitter.
Install
$ npm install @lacspace/case
Quick example
@lacspace/casets
kebabCase("XMLHttpRequest")
Returns "xml-http-request"
Tips
Zero-dependency and isomorphic — safe to import on the server, in the browser, on the edge and in React Native. It tree-shakes, so you only ship what you import.
Looking for the complete API and more examples? The npm page and GitHub README carry the full reference — or grab the PDF.