make-case
A JavaScript Package For Convert a string to Different Case Style
Features
npm
Install
npm install --save make-case
Browser Install
Production Script tag
<script src="https://cdn.rawgit.com/Prosen-Ghosh/make-case/4f189deb/make-case.js"></script>
Development Script tag
<script src="https://rawgit.com/Prosen-Ghosh/make-case/master/make-case.js"></script>
Development Dependencies
Package | Version | Dev |
---|---|---|
chai | ^4.1.2 | ✔ |
mocha | ^3.5.3 | ✔ |
node-readme | ^0.1.9 | ✔ |
API
Available methods
Usage
toCamelCase(string)
const makeCase = ; makeCase//=> "firstName" makeCase;//=> "firstName" makeCase//=> "firstName" makeCase//=> "firstName" makeCase//=> "firstName" makeCase//=> "firstName" makeCase//=> "firstName" makeCase//=> "firstName"
toDotCase(string)
const makeCase = ; makeCase//;=> "something.js" makeCase//=> "something.js" makeCase//=> "something.js" makeCase//=> "something.js" makeCase//=> "something.js" makeCase//=> "something.js" makeCase//=> "something.js" makeCase//=> "something.js"
toConstantCase(string)
const makeCase = ; makeCase;//=> API_KEY makeCase;//=> API_KEY makeCase;//=> API_KEY makeCase;//=> API_1KEY makeCase;//=> API_KEY makeCase;//=> API_KEY makeCase;//=> API_KEY
toDashCase(string)
const makeCase = ; makeCase;//=> "first-name-1" makeCase;//=> "first-name" makeCase;//=> "first-name" makeCase;//=> "first-name" makeCase;//=> "first-name" makeCase;//=> "first-name" makeCase;//=> "first-name"
toSnakeCase(string)
const makeCase = ; makeCase;//=> "first_name_1" makeCase;//=> "first_name" makeCase;//=> "first_name" makeCase;//=> "first_name" makeCase;//=> "first_name" makeCase;//=> "first_name"
Author
Prosen Ghosh [email protected]
License
- MIT