Browse Source

show an example with js and ts

develop
ray-1337 2 years ago
parent
commit
301059e3a3
No known key found for this signature in database GPG Key ID: DED41DCC150FCD32
  1. 4
      README.md

4
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");

Loading…
Cancel
Save