Skip to content

shutsugan/sensitive-words

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published