fastcase
fast and simple camel/snake case converter
Getting Started
const { toCameCaseFast, toSnakeCaseFast, toCamelCaseKeys, toSnakeCaseKeys } = require('@fastcampus/fastcase');
console.log(toCameCaseFast('foo_bar_baz_qux'));
// fooBarBazQux
console.log(toSnakeCaseFast('fooBarBazQux'));
// foo_bar_baz_qux
console.log(toCamelCaseKeys({ foo_bar:'hello', baz_qux: 'world' }));
// { fooBar: 'hello', bazQux: 'world' }
console.log(toSnakeCaseKeys({ fooBar:'hello', bazQux: 'world' }));
// { foo_bar: 'hello', baz_qux: 'world' }
Contributing
test
$ npm test
build
$ npm run build
watch(continuous build)
$ npm start
may the SOURCE be with you...