JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q30508F
  • License MIT

Masks the input strings

Package Exports

  • maskinput

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (maskinput) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

maskinput npm versionBuild StatusCoverage StatusKnown Vulnerabilities

Masks the input strings

Install

$ npm install --save maskinput

Usage

const maskinput = require('maskinput');

console.log(maskinput('john.doe@space.com'));

/*

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

 */

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 'john.doe@space.com'
    ##################

    maskinput 'john.doe@space.com' --maskedCharacter X
    XXXXXXXXXXXXXXXXXX

    maskinput 'john.doe@space.com' --totalUnmaskedLeadingCharacters 5 --totalUnmaskedTrailingCharacters 10
    john.###@space.com