This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

censoring.js

0.2.2 • Public • Published

Censoring.js

About

This package is able to filter words of a string and avoid common bypass methods like using different fonts or symboles between the words.

Installation

npm i censoring.js

Usage

const { censor } = require("censoring.js")

const string = "I dont like cats. C4ts are 𝓵𝓪𝔃𝔂 and attacking me all the time! I h-a.te them.."
const array = ["cats", "lazy", "hate"]
const replacement = "*"

const censored = censor(string, array, replacement)
console.log(censored) // I dont like **** **** are **** and attacking me all the time! I **** them..

Check

const { censorable } = require("censoring.js")

const string = "I dont like cats.."
const array = ["cats"]

const check = censorable(string, array)
console.log(censorable) // true

Package Sidebar

Install

npm i censoring.js

Weekly Downloads

0

Version

0.2.2

License

MIT

Unpacked Size

4.87 kB

Total Files

4

Last publish

Collaborators

  • excordo