Skip to content

BolajiAyodeji/sensy-words-filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sensy-words

NPM

Setup

$ npm install sensy-words-filter --save

Usage

const {sensyWords} = require('sensy-words-filter')

// ES2015 modules
import {sensyWords} from 'sensy-words-filter'

Replaces blacklisted words with asterisks

const words =
  sensyWords(
    'sensy-words, a package for filtering out a list of sensitive words',
    ['filtering', 'sensitive']
  )

console.log(words)
// sensy-words, a package for **** out a list of **** words

Replaces multiple instances of blacklisted words

const words =
  sensyWords(
    'sensy-words, a sensitive package for filtering out a list of sensitive words',
    ['filtering', 'sensitive']
  )

console.log(words)
// sensy-words, a **** package for **** out a list of **** words

About

Package for filtering out a list of sensitive words

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published