A simple package to switch between multiple case standards effortlessly.
Full docs available here.
Note: This is still under active development, keep an eye out for new features!
While using the object related functions, make sure your object is not polluted with mixed cases for keys.
Errors, other than validations, are no longer thrown but
console.errored. So, please be sure to check (error) logs before raising a bug on this.
Installation and Usage:
- Run the following to install the package
npm install @paradoxinfinite/convert-case # OR npm i @paradoxinfinite/convert-case
- Import the package as
const convertCase = require('@paradoxinfinite/convert-case'); // OR import convertCase from '@paradoxinfinite/convert-case';
- Use one of the functions after the import
const camelCaseString = convertCase.snakeToCamel('hello_world'); console.log(camelCaseString); // Outputs: helloWorld
Test Cases: I would really appreciate any help on writing test cases for this package. The more testing it gets, the better it will be.
Bug fixes and feature development: If you want to contribute to the code, feel free to raise a PR as long as it's a minor change. For a major change, please open an issue and discuss it out before you raise a PR or even get started with coding!
Feature requests: Feature requests will be great, raise an issue with the feature template to let me know what feature you would like added.
Documentation: Documentation and examples are also an amazing way to contribute, so if you notice any mistakes or want to add more content to the docs, you are more than welcome to!