Package Exports
- paix
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (paix) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
paix 🤝
a utility to map objects props with handy config!
Installation ⚙️
npm install paix
or
yarn add paix
Then...
import { paix } from 'paix';
const source_object = { FirstName: "Jhon", LastName: "Doe", Ignored: true };
const replacement = { FirstName: 'first_name', LastName: 'last_name' };
const modified_object = paix(source_object, replacement);
console.log(modified_object);
// { Ignored: true, first_name: 'Jhon', last_name: 'Doe' };