ts-swears

Typescript Module for cutting out the swears

Usage no npm install needed!

<script type="module">
  import tsSwears from 'https://cdn.skypack.dev/ts-swears';
</script>

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