2.0.1 • Published 5 years ago
check-kansellisten v2.0.1
check-kansellisten
Node module for checking text against kansellisten.
Usage
Input text and get array of "forbidden" words used
const { readFileSync } = require('fs')
const textClean = readFileSync('test/data/text-clean.txt', 'utf-8')
const textDirty = readFileSync('test/data/text-dirty.txt', 'utf-8')
const checkKansellisten = require('check-kansellisten')
console.log(checkKansellisten(textClean))
console.log(checkKansellisten(textDirty))
returns
[]
[ 'anbringe' ]