$ cnpm install mongodb-redact
Remove potentially sensitive information from objects without changing the shape.
Inspired by fruitsalad and mongo-redact.
npm install --save mongodb-redact
var redact = require('mongodb-redact');
// `variable` can be of any type, including object and array.
var result = redact(variable);
The following types of strings are currently redacted:
Does not redact any non-string types (e.g. numbers, dates, etc).
For examples, see ./test/index.test.js.
Apache 2.0
Copyright 2013 - present © cnpmjs.org | Home |