{"id":21074773,"url":"https://github.com/dawsbot/fuhk","last_synced_at":"2025-05-16T06:31:27.594Z","repository":{"id":57242730,"uuid":"53559947","full_name":"dawsbot/fuhk","owner":"dawsbot","description":"🖕 Get all \"bad words\" in a string","archived":false,"fork":false,"pushed_at":"2019-04-20T11:11:50.000Z","size":29,"stargazers_count":10,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-13T00:48:38.797Z","etag":null,"topics":["censored-words","children","parenting"],"latest_commit_sha":null,"homepage":"","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/dawsbot.png","metadata":{"files":{"readme":"readme.md","changelog":null,"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":"2016-03-10T06:10:23.000Z","updated_at":"2023-04-13T06:37:49.000Z","dependencies_parsed_at":"2022-09-04T11:40:27.153Z","dependency_job_id":null,"html_url":"https://github.com/dawsbot/fuhk","commit_stats":null,"previous_names":["dawsonbotsford/fuhk"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dawsbot%2Ffuhk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dawsbot%2Ffuhk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dawsbot%2Ffuhk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dawsbot%2Ffuhk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dawsbot","download_url":"https://codeload.github.com/dawsbot/fuhk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225411493,"owners_count":17470246,"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":["censored-words","children","parenting"],"created_at":"2024-11-19T19:17:52.358Z","updated_at":"2024-11-19T19:17:53.049Z","avatar_url":"https://github.com/dawsbot.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fuhk\n[![npm version](https://img.shields.io/npm/v/fuhk.svg)](https://www.npmjs.com/package/fuhk)\n[![npm download count](http://img.shields.io/npm/dm/fuhk.svg?style=flat)](http://npmjs.org/fuhk)\n[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo)\n\n\u003ctable\u003e\n  \u003cthead\u003e\n    \u003ctr\u003e\n      \u003cth\u003eLinux\u003c/th\u003e\n      \u003cth\u003eOS X\u003c/th\u003e\n      \u003cth\u003eWindows\u003c/th\u003e\n    \u003c/tr\u003e\n  \u003c/thead\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd colspan=\"2\" align=\"center\"\u003e\n        \u003ca href=\"https://travis-ci.org/dawsbot/fuhk\"\u003e\u003cimg src=\"https://api.travis-ci.org/dawsbot/fuhk.svg?branch=master\"\u003e\u003c/a\u003e\n      \u003c/td\u003e\n      \u003ctd align=\"center\"\u003e\n        \u003ca href=\"https://ci.appveyor.com/project/dawsonbotsford/fuhk\"\u003e\u003cimg src=\"https://ci.appveyor.com/api/projects/status/6tridf5r7sgn74i7?svg=true\"\u003e\u003c/a\u003e\n      \u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n\n\u003cbr\u003e\n\n\u003e Return all \"bad words\" found in a JavaScript string\n\n\u003cbr\u003e\n\n**Warning - parts of this are NSFW due to the nature of the module**\n\n## Usage\n\n#### Node\n\n```js\nconst fuhk = require('fuhk');\n\nfuhk('shit fuck rubber duck');\n//=\u003e ['shit', 'fuck']\n\nfuhk('nothing bad here!');\n//=\u003e []\n```\n\n\u003cbr\u003e\n\n#### Web\n\n```html\n\u003cscript src=\"https://rawgit.com/dawsonbotsford/fuhk/master/bundle.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n  alert(fuhk('shit fuck rubber duck'));\n  //=\u003e ['shit', 'fuck']\n\u003c/script\u003e\n```\n\n\u003cbr\u003e\n\nOr download it with `npm install --save fuhk` and reference it as:\n```html\n\u003cscript src=\"node_modules/fuhk/bundle.js\"\u003e\u003c/script\u003e\n```\n\n\u003cbr\u003e\n\n## Install\n\n```\nnpm install --save fuhk\n```\n\n\u003cbr\u003e\n\n## API\n\n### fuhk(target)\n\n##### target\n\nType: `string`\n\n\n##### return value\n\nType: `array`\n\nReturns all \"bad words\" found in a JavaScript string. Strips punctuation and preserves capitalization. If none are found, an empty array is returned.\n\n\u003cbr\u003e\n\n## License\n\nMIT © [Dawson Botsford](http://dawsonbotsford.com)\n\n\u003cbr\u003e\n\n---\nIf you like this, star it. If you want to follow me, follow me.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdawsbot%2Ffuhk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdawsbot%2Ffuhk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdawsbot%2Ffuhk/lists"}