1.0.9 • Published 7 years ago

mask-sensitive-words v1.0.9

Weekly downloads
-
License
MIT
Repository
-
Last release
7 years ago

#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
1.0.9

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago