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
1 deletions
-
README.md
|
|
@ -17,8 +17,10 @@ $ yarn add node-ufw |
|
|
|
``` |
|
|
|
|
|
|
|
## Usage |
|
|
|
|
|
|
|
```js |
|
|
|
const nodeUfw = require("node-ufw"); |
|
|
|
const nodeUfw = require("node-ufw").default; // JavaScript |
|
|
|
import nodeUfw from "node-ufw"; // TypeScript |
|
|
|
|
|
|
|
await nodeUfw.allow.port(6379); |
|
|
|
await nodeUfw.deny.port(25565, "udp"); |
|
|
|