Skip to content
This repository has been archived by the owner on Apr 26, 2020. It is now read-only.

Latest commit

 

History

History
19 lines (14 loc) · 364 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 364 Bytes

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' }]