mask-sensitive-words
v1.0.9
Published
``` shell //npm $ npm install mask-sensitive-words --save
Downloads
8
Readme
#Install
//npm
$ npm install mask-sensitive-words --save
//yarn
$ yarn add mask-sensitive-words
#Examples
const {maskSensitiveWords} = require('mask-sensitive-words');
//ES2015 syntax
import {maskSensitiveWords} from 'mask-sensitive-words';
const sentence = 'The name of Scorpio will be Microsoft XBOXTWO. XBOXTWO will be released soon';
const words2Mask = ['XBOXTWO']
const maskedSentence = maskSensitiveWords(sentence, words2Mask)
console.log(maskedSentence);
//The name of Scorpio will be Microsoft *****. ***** will be released soon