1.4.4 • Published 3 years ago

case-town v1.4.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

case-town

Convert space separated string to diffrent cases (camel case, pascal case, etc.).

Installation

npm i case-town

Usage

import caseTown from 'case-town'
or
const caseTown = require('case-town')

let str = 'your*-,  striNg _HERE'

let convertedStr1 = caseTown.camel(str)
// returned: yourStringHere

let convertedStr2 = caseTown.pascal(str)
// returned: YourStringHere

let convertedStr3 = caseTown.kebab(str)
// returned: your-string-here

let convertedStr4 = caseTown.snake(str)
// returned: your_string_here

let convertedStr5 = caseTown.url(str)
// returned: your/strin/here

let convertedStr6 = caseTown.title(str)
// returned: Your String Here

let convertedStr7 = caseTown.windowsPath(str)
// returned: your\string\here

let convertedStr8 = caseTown.searchQuery(str)
// returned: your+striNg+HERE

let convertedStr9 = caseTown.justClear(str)
// returned: your striNg HERE
1.4.4

3 years ago

1.4.3

3 years ago

1.4.2

3 years ago

1.4.1

3 years ago

1.4.0

3 years ago

1.3.0

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago