
Product
Introducing Reports: An Extensible Reporting Framework for Socket Data
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.
sensitive-word-filter
Advanced tools
A simple&basic text filter that is under censor of GFW, with DFA.
为nodejs提供的简单GFW敏感词过滤器,使用DFA实现。
var wc = require('sensitive-word-filter')
var string = "习近平大大,Ur so sexy babe!"
string = wc.filter(string)
console.log(string) // ***大大,Ur so ***y babe!
If you want to add key words of your own, simply add them to the end of 'keywords' file, one word per line.
在'keywords'文件末尾增加自定义敏感词,每行一个。
Under 1ms for a 10-20 words sentence. Around 10ms for 1000 words.
10-20字的短句在1ms以内替换完成,1000字左右需要10ms左右
Keyword list from https://github.com/observerss/textfilter
MIT
FAQs
Censor politically-sensitive words in China. 国内敏感词过滤器。
The npm package sensitive-word-filter receives a total of 473 weekly downloads. As such, sensitive-word-filter popularity was classified as not popular.
We found that sensitive-word-filter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.