@h7ml/badwords
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

@h7ml/badwords

NPM version License GitHub stars GitHub forks GitHub watchers

Install

npm

npm install @h7ml/badwords

yarn

yarn add @h7ml/badwords

pnpm

pnpm add @h7ml/badwords

usage

import

import {badwords, checkWord} from '@h7ml/badwords'

check

checkWord('天府广场', badwords) // true
checkWord('广场') // false

API

checkWord(text, words)

parameter type default require description
text string _ true To check the text
words string[] badwords false Sensitive vocabulary list

License

MIT License © 2022 Anthony Fu

Dependencies (0)

    Dev Dependencies (16)

    Package Sidebar

    Install

    npm i @h7ml/badwords

    Weekly Downloads

    1,140

    Version

    0.0.3

    License

    MIT

    Unpacked Size

    21.6 kB

    Total Files

    14

    Last publish

    Collaborators

    • h7ml