Skip to content

shariati/maskinput

Repository files navigation

maskinput npm versionBuild StatusCoverage StatusKnown Vulnerabilities

Masks the input strings

Install

$ npm install --save maskinput

Usage

const maskinput = require('maskinput');

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

/*

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

 */

CLI

$ npm install --global maskinput
$ maskinput --help

  Usage
    maskinput <string>
    maskinput <string> --totalUnmaskedTrailingCharacters 10
    maskinput <string> --totalUnmaskedLeadingCharacters 5 --totalUnmaskedTrailingCharacters 10
    maskinput <string> --maskedCharacter X
    echo <string> | maskinput

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

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

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

Releases

No releases published

Packages

No packages published