1.0.2 • Published 7 years ago

rename-property v1.0.2

Weekly downloads
28
License
ISC
Repository
-
Last release
7 years ago

rename-property

Renames properties. Work in objects or arrays.

Install

$ npm install --save rename-property

Usage

const rename = require('rename-property');

thisismyobject = { thisisaproperty: "abc" };
rename.property( thisismyobject, "thisisaproperty", "thisisanotherproperty" );

-> thisismyobject = { thisisanotherproperty: "abc" }

License

ISC