ts-swears
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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

Dependencies (0)

    Dev Dependencies (3)

    Package Sidebar

    Install

    npm i ts-swears

    Weekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    32.9 kB

    Total Files

    18

    Last publish

    Collaborators

    • mildfuzz