Skip to content

azamara/sensitive-words-1

Repository files navigation

Example

$ npm install sensitive-words --save
const {sensitiveWords} = require('sensitive-words')
// ES2015 modules
import {sensitiveWords} from 'sensitive-words'

const filtered = 
  sensitiveWords(
    'The new apple macbook pro will have a touchbar',
    ['pro', 'touchbar']
  )

console.log(filtered)
// The new apple macbook *** will have a ***

About

An example npm packge for an egghead course

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors