@priestine/case-transformer
v1.0.2
Published
Transform kebab back to camel. Or maybe make a kebab from Pascal.
Downloads
33
Maintainers
Readme
@priestine/case-transformer
Transform kebab back to camel. Or maybe make a kebab from Pascal.
Installation
npm i -g @priestine/case-transformer
Usage
UNDER CONSTRUCTION!
const { transformCase, toUpperSnakeCase } = require('@priestine/case-transformer');
// The eloquent and declarative way
const hw = transformCase('helloWorld').from.camel.to.kebab;
hw; // hello-world
// The deductive but dangerous way (there are dragons here!)
const H_W = toUpperSnakeCase('helloWorld');
H_W; // HELLO_WORLD
import { transformCase } from '@priestine/case-transformer';
// The TypeScript-friendly way
const hW = transformCase('here.there').from.dot.to.snake.toString();
hW; // here_there