ray-1337
2 years ago
No known key found for this signature in database
GPG Key ID: DED41DCC150FCD32
1 changed files with
2 additions and
2 deletions
-
README.md
|
|
@ -14,8 +14,8 @@ $ pnpm add node-ufw |
|
|
|
|
|
|
|
## Usage |
|
|
|
```js |
|
|
|
const nodeUfw = require("node-ufw").default; // JavaScript |
|
|
|
import nodeUfw from "node-ufw"; // TypeScript |
|
|
|
const nodeUfw = require("node-ufw"); // JavaScript |
|
|
|
import * as nodeUfw from "node-ufw"; // TypeScript |
|
|
|
|
|
|
|
await nodeUfw.allow.port(6379); |
|
|
|
await nodeUfw.deny.port(25565, "udp"); |
|
|
|