hump-string

1.0.0 • Public • Published

#hump ####converter for strings in JavaScript #Usage

Converting strings

    hump('hello_world') // 'helloWorld'
    hump('hello-world') // 'helloWorld'
    hump('hello world') // 'helloWorld'
    hump('helloWorld1') // 'hello_world1'
    hump('helloWorld1', {
            pattern: /(?=[A-Z0-9])/
    })                  //hello_world_1 
    hump('helloWorld', {
        retrofit: '-'
    }                   //hello-world

Readme

Keywords

none

Package Sidebar

Install

npm i hump-string

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • wj77998