{"id":21404212,"url":"https://github.com/supportclass/lfg-filter","last_synced_at":"2025-10-15T17:36:42.217Z","repository":{"id":24790972,"uuid":"28204764","full_name":"SupportClass/lfg-filter","owner":"SupportClass","description":"Word filter for NodeCG","archived":false,"fork":false,"pushed_at":"2020-05-06T02:19:09.000Z","size":61,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-09T00:05:32.555Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SupportClass.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-18T22:42:09.000Z","updated_at":"2021-10-20T17:52:29.000Z","dependencies_parsed_at":"2022-08-22T16:50:34.937Z","dependency_job_id":null,"html_url":"https://github.com/SupportClass/lfg-filter","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/SupportClass/lfg-filter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SupportClass%2Flfg-filter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SupportClass%2Flfg-filter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SupportClass%2Flfg-filter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SupportClass%2Flfg-filter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SupportClass","download_url":"https://codeload.github.com/SupportClass/lfg-filter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SupportClass%2Flfg-filter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279096451,"owners_count":26102565,"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","status":"online","status_checked_at":"2025-10-15T02:00:07.814Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11-22T16:13:32.543Z","updated_at":"2025-10-15T17:36:42.202Z","avatar_url":"https://github.com/SupportClass.png","language":"HTML","readme":"# lfg-filter\nThis is a [NodeCG](http://github.com/nodecg/nodecg) bundle.\n\n[![Build Status](https://travis-ci.org/SupportClass/lfg-filter.svg?branch=modals-wip)](https://travis-ci.org/SupportClass/lfg-filter)\n\nThis bundle provides `wordfilter` and `emailfilter` objects that other bundles can use to check if a string contains profanity or if an email address is blacklisted.\nIt also has a dashboard panel that allows the end user to add and remove phrases from the blacklists. **By default, the blacklists are empty.**\n\n## Installation\n- Install to `nodecg/bundles/lfg-filter`\n- Run NodeCG, open your dashboard, and use the Filter panel to edit the blacklists\n\n## Usage\nAdd `lfg-filter` as a `bundleDependency` in your bundle's [`nodecg.json`](https://github.com/nodecg/nodecg/wiki/nodecg.json)\n\nThen add the following to your bundle's extension:\n```javascript\nvar wordfilter = nodecg.extensions['lfg-filter'].wordfilter;\nvar emailfilter = nodecg.extensions['lfg-filter'].emailfilter;\n\n// Returns 'true' if the string contains profanity\nif (wordfilter.blacklisted('this is a string')) {\n    console.log('bad words found');\n} else {\n    console.log('squeaky clean');\n}\n\n// Returns 'true' if the address is blacklisted\nif (emailfilter.blacklisted('test@example.com')) {\n    console.log('email blacklisted');\n} else {\n    console.log('looks good to me, chief');\n}\n```\n\n### License\nlfg-filter is provided under the MIT license, which is available to read in the [LICENSE][] file.\n[license]: LICENSE\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupportclass%2Flfg-filter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsupportclass%2Flfg-filter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupportclass%2Flfg-filter/lists"}