Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

sensitive-words-ow

olympiawoj2ISC1.0.0

Filter out a list of sensitive words

filter, filtering, sensitive, words

readme

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