@qiwi/masker-sensor
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

@qiwi/masker-sensor

Hide sensitive data by path match

Install

yarn add @qiwi/masker-sensor

Usage

import {masker} from '@qiwi/masker-common'
import {pipe} from "@qiwi/masker-sensor";

masker.register(pipe)

masker('fooo bar baz foobar qux q', {
  pipeline: [['sensor', {pattern: /\w{4,}/g}]]
})
// **** bar baz ****** qux q

Readme

Keywords

Package Sidebar

Install

npm i @qiwi/masker-sensor

Weekly Downloads

0

Version

1.2.0

License

MIT

Unpacked Size

17 kB

Total Files

12

Last publish

Collaborators

  • antongolub
  • qiwibot