Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/luoyjx/node-desensitize

A node.js tool for desensitizing information
https://github.com/luoyjx/node-desensitize

desensitize nodejs

Last synced: 19 days ago
JSON representation

A node.js tool for desensitizing information

Awesome Lists containing this project

README

        

# node-desensitize

A tool for desensitizing information

## How does it work
```
node-desensitize

+--------------+ +--------------+ +--------------+
| | | | | |
| Origin | | Transform | | Desensitized |
| | +--> | | +--> | |
| Words | | Rules | | Words |
| | | | | |
+--------------+ +--------------+ +--------------+

```

## Methods

* chineseName(fullName)
* idCardNum(id)
* fixedPhone(phone)
* mobilePhone(phone)
* address(address, sensitiveSize)
* email(email)
* bankCard(carNumber)
* password(pwd)