{"id":23111817,"url":"https://github.com/dext7r/badwords","last_synced_at":"2025-08-16T19:30:59.448Z","repository":{"id":243411356,"uuid":"812335797","full_name":"dext7r/badwords","owner":"dext7r","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-08T16:54:49.000Z","size":80,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-11T10:49:55.044Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dext7r.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["h7ml"]}},"created_at":"2024-06-08T15:45:03.000Z","updated_at":"2024-08-28T18:18:36.000Z","dependencies_parsed_at":"2024-06-08T18:10:50.224Z","dependency_job_id":"3985174a-39ce-498b-9177-3a191e19b803","html_url":"https://github.com/dext7r/badwords","commit_stats":null,"previous_names":["h7ml/badwords"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dext7r%2Fbadwords","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dext7r%2Fbadwords/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dext7r%2Fbadwords/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dext7r%2Fbadwords/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dext7r","download_url":"https://codeload.github.com/dext7r/badwords/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230051322,"owners_count":18165199,"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-17T02:10:49.485Z","updated_at":"2024-12-17T02:10:50.056Z","avatar_url":"https://github.com/dext7r.png","language":"JavaScript","funding_links":["https://github.com/sponsors/h7ml"],"categories":[],"sub_categories":[],"readme":"# @h7ml/badwords\n\n[![NPM version](https://img.shields.io/npm/v/@h7ml/badwords?color=a1b858\u0026label=)](https://www.npmjs.com/package/@h7ml/badwords)\n[![License](https://img.shields.io/github/license/h7ml/badwords?color=2b7489)](https://github.com/h7ml/badwords/blob/main/LICENSE)\n[![GitHub stars](https://img.shields.io/github/stars/h7ml/badwords?style=social)](https://github.com/h7ml/badwords/)\n[![GitHub forks](https://img.shields.io/github/forks/h7ml/badwords?style=social)](https://github.com/h7ml/badwords/fork)\n[![GitHub watchers](https://img.shields.io/github/watchers/h7ml/badwords?style=social)](https://github.com/h7ml/badwords)\n\n# Install\n\n## npm\n\n```bash \nnpm install @h7ml/badwords\n```\n\n## yarn\n\n```bash\nyarn add @h7ml/badwords\n```\n\n## pnpm\n\n```bash\npnpm add @h7ml/badwords\n```\n\n# usage\n\n## import\n\n```js\nimport {badwords, checkWord} from '@h7ml/badwords'\n```\n\n## check\n\n```js\ncheckWord('天府广场', badwords) // true\ncheckWord('广场') // false\n```\n\n## API\n\n### checkWord(text, words)\n\n| parameter | type        | default    | require | description               |\n|-----------|-------------|------------|---------|---------------------------|\n| `text`    | `string`    | `_`        | `true`  | To check the text         |\n| `words`   | `string[]`\t | `badwords` | `false` | Sensitive vocabulary list |\n\n# License\n\n[MIT](./LICENSE) License © 2023 [h7ml](https://github.com/h7ml)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdext7r%2Fbadwords","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdext7r%2Fbadwords","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdext7r%2Fbadwords/lists"}