Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/shariati/maskinput
- Owner: shariati
- License: mit
- Created: 2017-02-01T03:14:31.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-04-08T09:26:17.000Z (over 5 years ago)
- Last Synced: 2024-08-11T00:52:06.783Z (3 months ago)
- Topics: javascript, mask, maskinput, nodejs, npm, npm-package
- Language: JavaScript
- Size: 83 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 --helpUsage
maskinput
maskinput --totalUnmaskedTrailingCharacters 10
maskinput --totalUnmaskedLeadingCharacters 5 --totalUnmaskedTrailingCharacters 10
maskinput --maskedCharacter X
echo | maskinputExample
maskinput '[email protected]'
##################maskinput '[email protected]' --maskedCharacter X
XXXXXXXXXXXXXXXXXXmaskinput '[email protected]' --totalUnmaskedLeadingCharacters 5 --totalUnmaskedTrailingCharacters 10
john.###@space.com