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

2.0.1 • Public • Published

@qiwi/masker-secret-value

Masker plugin to conceal sensitive values by pattern match.

Install

yarn add @qiwi/masker-secret-value

Usage

import {masker} from '@qiwi/masker'
import {pipe} from '@qiwi/masker-secret-value'

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

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i @qiwi/masker-secret-value

Weekly Downloads

151

Version

2.0.1

License

MIT

Unpacked Size

24.4 kB

Total Files

24

Last publish

Collaborators

  • antongolub
  • qiwibot