D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
etb1lp46s9ed
/
wabot.whatzi.online
/
node_modules
/
fast-redact
/
example
/
Filename :
default-usage.js
back
Copy
'use strict' const fastRedact = require('..') const fauxRequest = { headers: { host: 'http://example.com', cookie: `oh oh we don't want this exposed in logs in etc.`, referer: `if we're cool maybe we'll even redact this` } } const redact = fastRedact({ paths: ['headers.cookie', 'headers.referer'] }) console.log(redact(fauxRequest))