blacklisted-words
1.0.1 • Public • Published BlackListed Words
replace all the instances of your blacklisted words with asterisks
Example
$ npm install blacklisted-words --save
const {blacklistedWords} = require('blacklisted-words');
import {blacklistedWords} from 'blacklisted-words';
const filtered = blacklistedWords(
'The shinigami Kenpachi Zaraki does not know the name of his Zanpakutō.',
['shinigami', 'Zanpakutō'],
'***'
);
console.log(filtered);
/blacklisted-words/
//
Package Sidebar
Install
Weekly Downloads