1.0.2 • Published 7 years ago
rename-property v1.0.2
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