Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/shariati/maskinput

Masks the input strings
https://github.com/shariati/maskinput

javascript mask maskinput nodejs npm npm-package

Last synced: 4 days ago
JSON representation

Masks the input strings

Awesome Lists containing this project

README

        

# maskinput [![npm version](https://badge.fury.io/js/maskinput.svg)](https://badge.fury.io/js/maskinput)[![Build Status](https://travis-ci.org/shariati/maskinput.svg?branch=master)](https://travis-ci.org/shariati/maskinput)[![Coverage Status](https://coveralls.io/repos/github/shariati/maskinput/badge.svg?branch=master)](https://coveralls.io/github/shariati/maskinput?branch=master)[![Known Vulnerabilities](https://snyk.io/test/github/shariati/maskinput/badge.svg)](https://snyk.io/test/github/shariati/maskinput)
Masks the input strings

![](screenshot.png)

## Install

```
$ npm install --save maskinput
```

## Usage

```js
const maskinput = require('maskinput');

console.log(maskinput('[email protected]'));

/*

##################

*/
```

## CLI

```
$ npm install --global maskinput
```

```
$ maskinput --help

Usage
maskinput
maskinput --totalUnmaskedTrailingCharacters 10
maskinput --totalUnmaskedLeadingCharacters 5 --totalUnmaskedTrailingCharacters 10
maskinput --maskedCharacter X
echo | maskinput

Example
maskinput '[email protected]'
##################

maskinput '[email protected]' --maskedCharacter X
XXXXXXXXXXXXXXXXXX

maskinput '[email protected]' --totalUnmaskedLeadingCharacters 5 --totalUnmaskedTrailingCharacters 10
john.###@space.com