ninjapiratica-typescript-helpers
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

ninjapiratica-typescript-helpers

A module with simple helpers you probably don't need. A server may return results with PascalCasing and you want to use camelCasing. This will convert the objects for you to use. A server may expect PascalCasing and you use camelCasing. This will convert the objects for you as well.

Installation

npm install ninjapiratica-typescript-helpers --save

Usage

Typescript

import { convertCamelCase, convertPascalCase } from 'typescript-helpers';

var obj = {
    Key: 'value',
    ...
};

var newObj = convertToCamelCase(obj);
newObj should be
{
    key: 'value',
    ...
}

Package Sidebar

Install

npm i ninjapiratica-typescript-helpers

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

7.02 kB

Total Files

9

Last publish

Collaborators

  • ninjapiratica