ray-1337
2 years ago
No known key found for this signature in database
GPG Key ID: DED41DCC150FCD32
1 changed files with
3 additions and
5 deletions
-
README.md
|
@ -1,11 +1,10 @@ |
|
|
# Node UFW |
|
|
# Node UFW |
|
|
Manipulate UFW (Linux distribution only, works best on Ubuntu) via Node.js. |
|
|
Manipulate UFW (Linux distribution only) through Node.js. |
|
|
> This module is under development. Use with caution. |
|
|
|
|
|
|
|
|
|
|
|
## System Requirements |
|
|
## System Requirements |
|
|
Only supported on [Node.js](https://nodejs.org) version 14 or above, and Ubuntu version 18 or above. |
|
|
The module only supports [Node.js](https://nodejs.org) up to version 16, and Ubuntu version 18 or above. |
|
|
|
|
|
|
|
|
This also requires **root** access, or else you'll get an error from ufw itself/password prompt from Ubuntu. |
|
|
This also requires **root** access, otherwise you will get an error from `ufw` itself, asking you a password with prompt. |
|
|
|
|
|
|
|
|
## Installation |
|
|
## Installation |
|
|
```shell |
|
|
```shell |
|
@ -14,7 +13,6 @@ $ pnpm add node-ufw |
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|
## Usage |
|
|
## Usage |
|
|
|
|
|
|
|
|
```js |
|
|
```js |
|
|
const nodeUfw = require("node-ufw").default; // JavaScript |
|
|
const nodeUfw = require("node-ufw").default; // JavaScript |
|
|
import nodeUfw from "node-ufw"; // TypeScript |
|
|
import nodeUfw from "node-ufw"; // TypeScript |
|
|