@qpoint/dlp
v0.0.3
Published
A Qpoint adapter for detecting and optionally scrubbing content from externally traveling API calls.
Downloads
2
Readme
qpoint-dlp
A Qpoint adapter for detecting and optionally scrubbing content from externally traveling API calls.
Usage
import { Context, Endpoint } from '@qpoint/endpoint';
import processDLP from '@qpoint/dlp';
export default new Endpoint()
.use(processDLP({
rules: [
{
label: 'CREDIT CARD NUMBER',
expression: /\b(?:\d[ -\.]*?){13,16}\b/g,
scrub: true,
report: true,
record: true,
failOnDetect: false,
}
],
}));
Installation
npm add @qpoint/dlp