0.0.9 • Published 10 years ago

speak-no-evil v0.0.9

Weekly downloads
14
License
ISC
Repository
github
Last release
10 years ago

Codeship Status for NestedData/SpeakNoEvil

Methodology:

Searches a string for a substring match of each word/phrase in the blacklist

Usage:

# create a filter with the default list
Filter = new SpeakNoEvil()

# create a filter with a custom list
Filter = new SpeakNoEvil(["a", "b", "c"])

# check a string for profanity
result = Filter.check("a possibly profane string")
if result
  console.log "string was profane"

Running tests

npm install -g grunt mocha
npm test
0.0.9

10 years ago

0.0.8

11 years ago

0.0.7

11 years ago

0.0.6

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago