Skip to content

🤝 paix.js is a utility to map objects props with handy config!

Notifications You must be signed in to change notification settings

muhammedMoussa/paix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

🤝 paix.js is a utility to map objects props with handy config!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published