mongodb-redact
Remove potentially sensitive information from objects without changing the shape.
Last updated 2 days ago by addaleax .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install mongodb-redact 
SYNC missed versions from official npm registry.

mongodb-redact

Remove potentially sensitive information from objects without changing the shape.

Inspired by fruitsalad and mongo-redact.

Installation

npm install --save mongodb-redact

API

var redact = require('mongodb-redact');

// `variable` can be of any type, including object and array.
var result = redact(variable);

Redaction

The following types of strings are currently redacted:

  • Certificates and private keys
  • Electron application resource directories (Windows, OS X, Linux)
  • Generic user directories (Windows, OS X, Linux)
  • Email addresses
  • IP addresses
  • URLs
  • MongoDB connection strings

Does not redact any non-string types (e.g. numbers, dates, etc).

For examples, see ./test/index.test.js.

License

Apache 2.0

Current Tags

  • 0.2.1                                ...           latest (2 days ago)

6 Versions

  • 0.2.1                                ...           2 days ago
  • 0.1.1                                ...           2 days ago
  • 0.2.0                                ...           9 months ago
  • 0.1.0                                ...           5 years ago
  • 0.0.2                                ...           5 years ago
  • 0.0.1                                ...           5 years ago

Copyright 2014 - 2016 © taobao.org |