string-helper

string-helper JS library on GitHub string-helper JS library on npm Download string-helper JS library

Do things that lodash doesn't

Version 0.0.8
string-helper has no homepage
string-helper JS library on GitHub
string-helper JS library on npm
Download string-helper JS library

string-helper

Build Status Coverage Status Dependencies Dev dependencies

Do things that lodash doesn't.

How to install

npm install string-helper

Usage

renameKeys(obj, [fn = lodash.snakeCase])

import { renameKeys, pascalCase } from 'string-helper';

const obj = { camelCase: 'camelCase' };

console.log(renameKeys(obj));
// => { camel_case: 'cameCase' };

console.log(renameKeys(obj, pascalCase));
// => { PascalCase: 'cameCase' };

pascalCase(str)

import { pascalCase } from 'string-helper';

const str = 'snake_case'.

console.log(pascalCase(str));
// => 'SnakeCase';