zensory

1.0.1 • Public • Published

Zensory

Want to provide a zene and peaceful feeling for your site's visitors? Look no further!

Zensory is a Node Packaged Module that censors and replaces predefined sensitive words with "****". Custom words can be added and removed by using the corresponding functions.

Install

With npm installed, run

$ npm install censory

Usage

To censor words in a string:

censor('string')

To add word to the custome censor list:

addCustomCensoredWord('word')

To remove word from the custom censor list:

removeCustomCensoredWord('word')

To retrieve system censor list:

getSystemCensoredWord()

To retrieve custom censor list:

getCustomCensoredWords()

To retrieve all censor words:

getAllCensoredWords()

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • Hat tip to anyone whose code was used

Readme

Keywords

Package Sidebar

Install

npm i zensory

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

7.84 kB

Total Files

5

Last publish

Collaborators

  • ngelsa