Skip to content

selvin-paul-raj/spr-censorify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SPRHackz-Censority

CustomCensorify

A JavaScript module for efficient text censorship. Replace sensitive words with asterisks in an easy and effective manner.

Installation

npm install sprhackz-censorify

Usage

// To Install package `npm i sprhackz-censorify`
var censor = require("sprhackz-censorify"); // To Import The Package

console.log("\n PreDefine  Censored Words : ");
console.log(censor.getCensoredWords());

// Censor a sample text
console.log(`\n ${censor.censor("Some very sad, bad and mad text.")}`);

// Add a custom censored word
console.log("\n To Add a Custom Censored Word :");
censor.addCensoredWord("gloomy");

// Output the updated list of censored words
console.log(censor.getCensoredWords());

// Censor another sample text

console.log(`\n ${censor.censor("A very gloomy day.")} \n`);

Authors

  • Selvin PaulRaj k - Initial work - SPR Hackz

Releases

No releases published

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy