censor-swear

    1.0.4 • Public • Published

    Need to make sure no one puts naughty words in your text? Need to keep your comments section kid-friendly? filter out whatever you need to by passing in an array, and watch those words be cleaned right up. censor takes two arguments. First, is an arr of words that you will check for. the second is the string that you wish to pass through and censor.

    ex: var censor = require(PATH)

    censor.censorBadWords(['array', 'of', 'bad', 'words'], 'string of words to see what is bad')

    returns: 'string o* w**** to see what is b**'

    Install

    npm i censor-swear

    DownloadsWeekly Downloads

    3

    Version

    1.0.4

    License

    ISC

    Last publish

    Collaborators

    • sanky