mask-text-js
v0.1.0
Published
Package to mask text
Downloads
9
Maintainers
Readme
Mask text
usage
Usage
maskText
const textMask = require('mask-text-js');
// or
const { maskText } = require('mask-text-js');
// Text to mask
const originalText = "[email protected]";
// Percentage of text to unmask
const unmaskTextPercentage = 20;
const result = maskText(
originalText,
unmaskTextPercentage
);
console.log(result);
//Output
"johxxxxxxxxxxxxxcom"