README
TS Swears
Tiny module to test if a word is a swear (as listed by Google-profanity-words)
Methods
import isSwear from 'ts-swears'
// isSwear(word: string): boolean
isSwear('fuck') // true
isSwear('flip') // false
Typescript Module for cutting out the swears
<script type="module">
import tsSwears from 'https://cdn.skypack.dev/ts-swears';
</script>
Tiny module to test if a word is a swear (as listed by Google-profanity-words)
import isSwear from 'ts-swears'
// isSwear(word: string): boolean
isSwear('fuck') // true
isSwear('flip') // false