Skip to content

Commit c3fe771

Browse files
authored
fix: add use as npm module directions
1 parent dab309a commit c3fe771

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,16 @@ npm install -g udt-collaboration-server
1717
udt-collaboration-server --port 80
1818
```
1919

20+
## Usage as an npm module
21+
22+
```javascript
23+
const runCollaborationServer = require("udt-collaboration-server")
24+
const server = runCollaborationServer({ port: 3000 })
25+
26+
// Later...
27+
server.close()
28+
```
29+
2030
## Support & Docs
2131

2232
Join the [Universal Data Tool Slack](https://universaldatatool.slack.com) if you run into any issues!

0 commit comments

Comments
 (0)