This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@fastcampus/fastcase
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

fastcase

fast and simple camel/snake case converter

npm version

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...

/@fastcampus/fastcase/

    Package Sidebar

    Install

    npm i @fastcampus/fastcase

    Weekly Downloads

    0

    Version

    0.1.4

    License

    MIT

    Unpacked Size

    27.6 kB

    Total Files

    38

    Last publish

    Collaborators

    • heeok
    • hibiya
    • iolo
    • jaewon-noh
    • nodelay
    • rocio82
    • soomtong
    • starr9622
    • sujinnn
    • yoosoo