rename-props-object

0.0.7 • Public • Published

Setup

$ npm install --save-dev rename-props-object

Usage

import renameProps, { toCamelCase } from 'rename-props-object';

const response = [{ foo_bar: 'foo' }];
const result = renameProps.getRenameData(
  response,
  toCamelCase, // or your callback function. Please make pull request🙏
);

console.log(result); // [{ fooBar: 'foo' }]

Readme

Keywords

Package Sidebar

Install

npm i rename-props-object

Weekly Downloads

1

Version

0.0.7

License

MIT

Unpacked Size

1.41 kB

Total Files

2

Last publish

Collaborators

  • hanagejet