@priestine/case-transformer
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

@priestine/case-transformer

Build Status codecov npm npm code style: prettier versioning: semantics

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

Package Sidebar

Install

npm i @priestine/case-transformer

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

21 kB

Total Files

16

Last publish

Collaborators

  • priestine