dot-snake-camel-case-convertor
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

dot-snake-camel-case-convertor

【WIP】convert dot-case, snake_case, camelCase to one another. eg: hello-world => hello_world / HelloWorld (vice versa)

Install

npm install dot-snake-camel-case-convertor

Usage

// es module
import camel2dot from 'dot-snake-camel-case-convertor'
camel2dot('helloWorld') // hello-world
// commonjs
const camel2dot = require('dot-snake-camel-case-convertor')
camel2dot('helloWorld') // hello-world

Tip

this is still working in progress. only support strict camelCase to dot-case now. eg: helloWorld => hello-world

Package Sidebar

Install

npm i dot-snake-camel-case-convertor

Weekly Downloads

1

Version

0.0.6

License

MIT

Unpacked Size

6.95 kB

Total Files

9

Last publish

Collaborators

  • lalalazero