1.2.3 • Published 2 years ago

cake-case v1.2.3

Weekly downloads
7
License
MIT
Repository
github
Last release
2 years ago

Cake Case

Build Status npm version Downloads

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');         // 'hello world'
Case.lower('HelloWorld', '-');    // 'hello-world'
Case.upper('hello-world');        // 'HELLO WORLD'
Case.upper('hello-world', '_');   // 'HELLO_WORLD'
Case.capital('hello_world');      // 'Hello World'
Case.capital('hello_world', '');  // 'HelloWorld'

Case.camel('hello world');  // 'helloWorld'
Case.pascal('hello world'); // 'HelloWorld'
Case.kebab('HelloWorld');   // 'hello-world'
Case.snake('helloWorld');   // 'hello_world'

License

The MIT License

1.2.3

2 years ago

1.2.2

3 years ago

1.2.1

4 years ago

1.2.0

5 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago