1.0.4 • Published 11 months ago

sensitive-words-js v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

sensitive-words-js

ESM package containing dict and mint-filter.

Usage

Default zh-CN filter

import { filter } from 'sensitive-words-js';

const { words, text } = filter.filter('一次性交纳百元');
// words === ['性交']
// text === '一次**纳百元'

See ZhelinCheng/mint-filter for more usages.

Get the dict

import { zhCN } from 'sensitive-words-js';

// zhCN === ['性交', ...]

Contributing

You can add more words into src/dict folder, not limited to zh-CN words.

pnpm i
pnpm run generate-barrels
1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago

0.1.0

11 months ago

0.0.1

11 months ago