1.0.1 • Published 6 years ago

blacklisted-words v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

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

6 years ago

1.0.0

6 years ago