{"id":23678991,"url":"https://github.com/d3oxy/censor-badwords","last_synced_at":"2025-12-30T14:30:14.824Z","repository":{"id":57195748,"uuid":"455619041","full_name":"D3OXY/censor-badwords","owner":"D3OXY","description":"An NPM Package which finds and Censors badwords from the given string.","archived":false,"fork":false,"pushed_at":"2022-02-05T09:50:38.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-30T11:09:36.233Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/D3OXY.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-02-04T16:31:03.000Z","updated_at":"2023-03-10T07:02:10.000Z","dependencies_parsed_at":"2022-09-16T12:12:29.100Z","dependency_job_id":null,"html_url":"https://github.com/D3OXY/censor-badwords","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/D3OXY%2Fcensor-badwords","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/D3OXY%2Fcensor-badwords/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/D3OXY%2Fcensor-badwords/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/D3OXY%2Fcensor-badwords/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/D3OXY","download_url":"https://codeload.github.com/D3OXY/censor-badwords/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239720664,"owners_count":19686131,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-29T16:59:44.550Z","updated_at":"2025-12-30T14:30:14.739Z","avatar_url":"https://github.com/D3OXY.png","language":"JavaScript","funding_links":["https://www.buymeacoffee.com/deoxy"],"categories":[],"sub_categories":[],"readme":"![](https://www.psdstamps.com/wp-content/uploads/2019/11/grunge-censored-label-png-768x512.png)\n\n# Finds and Censors badwords from the given string.\n### Features\n\n- Add/Remove words.\n- Set of default words available.\n- Get word Cencored output..\n- Compatible with NodeJS, Javascript, Typescript, HTML etc....\n- Censors words from the string given.\n- Full Support and frequent bug fixes.\n- Supported Languages (English), More coming soon!\n\n\n\n## Installation\n-------------\n`npm install censor-badwords`\n-------------\n\n\n# Usage\n\n\n#### Check if the String has a bad word.\n```js\nconst badwords = require('censor-badwords');\n\nlet message = 'Hi Leon, how are you?'\n\nlet hasBadwords = badwords.hasbadwords(message)\n\nif (hasBadwords) {\n    console.log('Yes, the message has bad words')\n} else {\n    console.log('No, the message does not have a bad words')\n}\n```\n\n#### Censor bad-words from the message\n```js\nconst badwords = require('censor-badwords');\n\nlet message = 'hi Leon, Wanna have a drink?' //Suppose \"drink\" is a bad word.\n\nlet censoredMessage = badwords.censorMsg(message)\n\nconsole.log(censoredMessage) //Output will be \"hi Leon, Wanna have a ****?\"\n```\n\n#### Add a bad word\n```js\nconst badwords = require('censor-badwords');\n\nbadwords.addbadword('leon')\n```\n\n#### Remove a bad word\n```js\nconst badwords = require('censor-badwords');\n\nbadwords.removebadword('leon')\n```\n#### List all bad words in the list\n```js\nconst badwords = require('censor-badwords');\n\nlet bardwordsList = badwords.getbadwords()\nconsole.log(bardwordsList)\n```\n#### Remove all bad words from the list\n```js\nconst badwords = require('censor-badwords');\n\nbadwords.emptybadwords()\n```\n#### Add default bad words to the list\n```js\nconst badwords = require('censor-badwords');\n\nbadwords.setdefaultbadwords()\n```\n\n### **Note**\n### Alternatively, you can directly edit the file `bad-words.json` in the root directory of the project.\n\n\n------------------------------\n\n\n### Usefull Links\n\n\n\n`Github`: [Click Here](https://github.com/D3OXY)\n`Report Issue`: [Click Here](https://github.com/D3OXY/censor-badwords/issues)\n\n\u003ca href=\"https://www.buymeacoffee.com/deoxy\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/default-orange.png\" alt=\"Buy Me A Coffee\" height=\"41\" width=\"174\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/D3OXY\" target=\"_blank\"\u003e\u003cimg src=\"https://w7.pngwing.com/pngs/711/176/png-transparent-github-inc-repository-source-code-github-mammal-cat-like-mammal-carnivoran-thumbnail.png\" alt=\"Buy Me A Coffee\" height=\"41\" width=\"40\"\u003e\u003c/a\u003e\n---------------\n### The End\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd3oxy%2Fcensor-badwords","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fd3oxy%2Fcensor-badwords","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd3oxy%2Fcensor-badwords/lists"}