{"id":18533541,"url":"https://github.com/ray-1337/node-ufw","last_synced_at":"2025-04-09T15:31:21.930Z","repository":{"id":57687846,"uuid":"480564403","full_name":"ray-1337/node-ufw","owner":"ray-1337","description":"Manipulate UFW via Node.js.","archived":false,"fork":false,"pushed_at":"2023-06-04T20:24:36.000Z","size":79,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T08:21:22.129Z","etag":null,"topics":["cli","linux","node","nodejs","ubuntu","ufw","ufw-firewall"],"latest_commit_sha":null,"homepage":"https://npmjs.com/node-ufw","language":"TypeScript","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/ray-1337.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"custom":["https://trakteer.id/ray1337","https://paypal.me/ray0001"]}},"created_at":"2022-04-11T21:56:30.000Z","updated_at":"2024-10-27T12:40:51.000Z","dependencies_parsed_at":"2022-08-25T19:01:43.781Z","dependency_job_id":null,"html_url":"https://github.com/ray-1337/node-ufw","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/ray-1337%2Fnode-ufw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ray-1337%2Fnode-ufw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ray-1337%2Fnode-ufw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ray-1337%2Fnode-ufw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ray-1337","download_url":"https://codeload.github.com/ray-1337/node-ufw/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248057941,"owners_count":21040666,"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":["cli","linux","node","nodejs","ubuntu","ufw","ufw-firewall"],"created_at":"2024-11-06T19:12:00.455Z","updated_at":"2025-04-09T15:31:21.633Z","avatar_url":"https://github.com/ray-1337.png","language":"TypeScript","funding_links":["https://trakteer.id/ray1337","https://paypal.me/ray0001"],"categories":[],"sub_categories":[],"readme":"# Node UFW\nManipulate UFW (Linux distribution only) through Node.js.\n\n## System Requirements\nThe module only supports [Node.js](https://nodejs.org) up to version 16, and Ubuntu version 18 or above.\n\nThis also requires **root** access, otherwise you will get an error from `ufw` itself, asking you a password with prompt.\n\n## Installation\n```shell\n$ npm install node-ufw\n$ pnpm add node-ufw\n```\n\n## Usage\n```js\nconst nodeUfw = require(\"node-ufw\"); // JavaScript\nimport * as nodeUfw from \"node-ufw\"; // TypeScript\n\nawait nodeUfw.allow.port(6379);\nawait nodeUfw.deny.port(25565, \"udp\");\n\nawait nodeUfw.allow.address(\"192.168.0.1\");\nawait nodeUfw.deny.address(\"192.168.0.1\", 80);\nawait nodeUfw.allow.address(\"192.168.0.1\", 6379, \"udp\");\n\nawait nodeUfw.enable();\n```\n\n## Documentations\nSee [DOCS](docs/DOCS.md).\n\n## LICENSE\nSee [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fray-1337%2Fnode-ufw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fray-1337%2Fnode-ufw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fray-1337%2Fnode-ufw/lists"}