string-instrument
v0.0.3
Published
A little library for working with strings
Downloads
4
Maintainers
Readme
String Instrument
A little library for working with strings.
Installation
npm install --save string-instrument
# yarn add string-instrument
# pnpm add string-instrument
Usage
import {
camelise,
dasherise,
downcaseFirst,
parameterise,
titleise,
underscore
} from 'string-instrument'
console.log(camelise('hello_world')) // helloWorld
console.log(dasherise('hello_world')) // hello-world
console.log(downcaseFirst('Hello World')) // hello World
console.log(parameterise('Hello World')) // hello-world
console.log(titleise('hello world')) // Hello World
console.log(underscore('helloWorld')) // hello_world