Cake Case
The simple utility methods that converts string case. It's optimized for use in code, such as variable or key of object.
Installation
npm install cake-case
Usage
import * as Case from 'cake-case';
Case.lower('HelloWorld');
Case.lower('HelloWorld', '-');
Case.upper('hello-world');
Case.upper('hello-world', '_');
Case.capital('hello_world');
Case.capital('hello_world', '');
Case.camel('hello world');
Case.pascal('hello world');
Case.kebab('HelloWorld');
Case.snake('helloWorld');
License
The MIT License