npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

swearify

v1.0.2

Published

Complete swear filter package which support most languages and more than 10000 words

Readme

Swearify

Complete swear filter package which support most languages and more than 10000 words .

Requirements

As of version 2, requires you either have an environment that understands ES2016 and beyond or a transpiler like Babel.

Installation

npm install swearify --save

Usage

const filter = require('swearify');

const result = filter.findAndFilter (
'Lorem ipsum dolor fUck amet, consectetur xxx elit, sed do жопа tempor incididunt fuck ut sex et 
dolore magna aliqua, lorem دیوس dolor sit amet, consectetur بیناموس elit, sed do eiusmod tempor incididunt
ut b*tch et dolore ковровщик aliqua 🖕',                   // your sentence to filter
'▩',                                                      // placeholder
['en',  'fa',  'ru'],                                     // filter in which languages
['sex'],                                                  // allowed swears
[],                                                       // add your own words
);

console.log(result);

Output

{

found: true,

selected_languages: [ 'en', 'fa', 'ru' ],

bad_words: [ 'ковровщик', 'بیناموس', 'b*tch', 'fuck', 'دیوس', 'жопа', 'sex', 'xxx', 'xx', '🖕'],

filtered_sentense: 'Lorem ipsum dolor ▩▩▩▩ amet, consectetur ▩▩▩ elit, sed do ▩▩▩▩ tempor incididunt ▩▩▩▩ ut sex et dolore magna aliqua, lorem ▩▩▩▩ dolor sit amet, consectetur ▩▩▩▩▩▩▩ elit, sed do eiusmod tempor incididunt ut b*▩▩▩▩▩ et dolore ▩▩▩▩▩▩▩▩▩ aliqua ▩▩',

allowed_words: [ 'sex' ]

}

Supported Languages

| language | code | country | words number | | ---------- | ---- | ------------------------------------------------------------------------------------- | ------------ | | Belarusian | be | | 135 | | Bulgarian | bg | | 135 | | Catalan | ca | | 132 | | Welsh | cy | | 144 | | Danish | da | | 139 | | German | de | | 133 | | Greek | el | | 131 | | English | en | | 2863 | | Spanish | es | | 125 | | Estonian | et | | 133 | | Basque | eu | | 143 | | Persian | fa | | 271 | | Finnish | fi | | 133 | | French | fr | | 126 | | Gaelic | gd | | 137 | | Galician | gl | | 134 | | Hindi | hi | | 137 | | Croatian | hr | | 135 | | Hungarian | hu | | 134 | | Armenian | hy | | 137 | | Indonesian | id | | 115 | | Icelandic | is | | 131 | | Italian | it | | 131 | | Japanese | ja | | 122 | | Kannada | kn | | 140 | | Korean | ko | | 119 | | Latin | la | | 145 | | Lithuanian | lt | | 130 | | Latvian | lv | | 136 | | Macedonian | mk | | 130 | | Malayalam | ml | | 134 | | Mongolian | mn | | 140 | | Marathi | mr | | 136 | | Malay | ms | | 137 | | Maltese | mt | | 141 | | Dutch | nl | | 138 | | Polish | pl | | 133 | | Portuguese | pt | | 132 | | Romanian | ro | | 139 | | Russian | ru | | 139 | | Slovak | sk | | 140 | | Slovenian | sl | | 130 | | Albanian | sq | | 139 | | Serbian | sr | | 142 | | Swedish | sv | | 135 | | Telugu | te | | 144 | | Thai | th | | 138 | | Turkish | tr | | 132 | | Ukrainian | uk | | 136 | | Uzbek | uz | | 141 | | Vietnamese | vi | | 115 | | Zulu | zu | | 140 |