🚀 Socket Launch Week Day 4:Socket MCP Adds Org Alerts, Threat Feed Review, and Package Inspection.Learn more
Sign In

desensitizer

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

desensitizer

Desensitize sensitive data

latest
npmnpm
Version
1.0.0
Version published
Weekly downloads
3
-62.5%
Maintainers
1
Weekly downloads
 
Created
Source

Desensitizer

字符串脱敏

Install

npm i desensitizer

or

yarn add desensitizer

Usage

const desensitizer = require('desensitizer')

desensitizer.desensitize('this is secret string') // th****ng

desensitizer.desensitizeObject({ password: 'password' }) // => { password: 'pa****rd' }
desensitizer.desensitizeObject({ password: 'password', key: 'serect' }, { keyPattern: /password|key/ }) // { password: 'pa****rd', key: 'se****ct' }

FAQs

Package last updated on 21 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts