From 5f813a7bf009e3dd6f5b29ccd5d96df2e145be81 Mon Sep 17 00:00:00 2001 From: birme Date: Sat, 13 Jun 2020 09:49:51 +0200 Subject: [PATCH] Looks nicer this way --- README.md | 2 +- example.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6d64930..13f9001 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ npm install --save @eyevinn/srt ``` ``` -const SRT = require('@eyevinn/srt').SRT; +const { SRT } = require('@eyevinn/srt'); const srt = new SRT(); const socket = srt.createSocket(); diff --git a/example.js b/example.js index 8aedb16..a3ba30a 100644 --- a/example.js +++ b/example.js @@ -1,4 +1,4 @@ -const SRT = require('./index.js').SRT; +const { SRT } = require('./index.js'); const srt = new SRT(); const socket = srt.createSocket();