@dadi/log-filter
v1.0.2
Published
Filter sensitive parameters from log files
Downloads
118
Keywords
Readme
Log Filter
Filter sensitive parameters from log files
Install
npm i @dadi/log-filter
Filter querystring parameters
const LogFilter = require('@dadi/log-filter')
let req = {
url: '/profile?username=ed&password=octopus'
}
let filter = ['password']
let logFilter = new LogFilter(req, filter)
let output = logFilter.filterPath()
// produces /profile?username=ed&password=%5BFILTERED%5D