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 ***.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    1
  • 1.0.0
    1

Package Sidebar

Install

npm i blacklisted-words

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

2.5 kB

Total Files

4

Last publish

Collaborators

  • shutsugan