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

2.0.1 • Public • Published

@qiwi/masker-secret-key

Hide sensitive data by key/path pattern match

Install

yarn add @qiwi/masker-secret-key

Usage

import {masker} from '@qiwi/masker'
import {pipe as secretKey} from '@qiwi/masker-secret-key'

masker({ secret: 'foo' }, {
  pipeline: [[secretKey, {pattern: /secret/g, pupeline: ['plain']}]]
})
// {secret: '***'}

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i @qiwi/masker-secret-key

Weekly Downloads

1

Version

2.0.1

License

MIT

Unpacked Size

9.57 kB

Total Files

10

Last publish

Collaborators

  • antongolub
  • qiwibot