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');
 
//ES2015 modules
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);
//The *** Kenpachi Zaraki does not know the name of his ***.

Package Sidebar

Install

npm i blacklisted-words

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

2.5 kB

Total Files

4

Last publish

Collaborators

  • shutsugan