transform-obj
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

🛠 transform-obj

Allows you transform entire object data or datum

npm downloads License

Usage

Run one of the following command inside your project directory to install the package:

$ npm i transform-obj
or
$ yarn add transform-obj
Input Output
import { transformToCamelCase } from "transform-obj";

const someData = [
  {
    id: 1,
    status_avaliable_online: true,
  },
];

const transform = transformToCamelCase(someData);
const someData = [
  {
    id: 1,
    statusAvaliableOnline: true,
  },
];

and support for nested objects or nested arrays.

License

MIT

Package Sidebar

Install

npm i transform-obj

Weekly Downloads

393

Version

1.1.1

License

MIT

Unpacked Size

14.7 kB

Total Files

11

Last publish

Collaborators

  • r1z