node-sanitizer

1.0.5 • Public • Published

node-sanitizer

Node Object Sanitizer

Installation

Clone the repo and make it yours:

yarn add node-sanitizer

Use

const sanitizer = require('node-sanitizer');

const obj = {
  username: 'some@email.com',
  password: 'veryverysecret',
  fullname: 'Awesome guy',
};

const sanitizedObject = sanitizer(obj, ['password']);

console.log(sanitizedObject);

License

MIT License - Suhendra Ahmad

Dependents (0)

Package Sidebar

Install

npm i node-sanitizer

Weekly Downloads

45

Version

1.0.5

License

MIT

Unpacked Size

113 kB

Total Files

7

Last publish

Collaborators

  • azanium