/case.js

A camel case demo with type level support.

Primary LanguageJavaScriptOtherNOASSERTION

Case

npm build status

This library exists to provide case conversion between common cases like camelCase and snake_case, with type-level support. It is intended to be unicode aware, internally consistent, and reasonably well performing.

The transformation algorithm in this library is based on the Rust heck library.

Cases contained in this library

  1. PascalCase
  2. camelCase
  3. snake_case
  4. kebab-case

License

This project is licensed under either of Apache License, Version 2.0 or MIT License at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.