This data has been exposed as
- an array
- an object
- a regular expression
depending on what is required for your purposes.
npm install badwords
var badwordsArray = require('badwords/array'); var badwordsObject = require('badwords/object'); var badwordsRegExp = require('badwords/regexp');
"Bad words" implementations are frequently prone to the Scunthorpe problem
These kind of lists can be used for flagging things, but being used as a basis for outright blocking can cause issues.