diff options
Diffstat (limited to 'docs/api.md')
-rw-r--r-- | docs/api.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/api.md b/docs/api.md index 78e98e2..6bd20c9 100644 --- a/docs/api.md +++ b/docs/api.md @@ -599,7 +599,7 @@ node.js-style duplex stream to the remote peer. This event can be used to specif Here is a usage example: ```js -const MyExtension = require('./my-extension') +import MyExtension from './my-extension' torrent1.on('wire', function (wire, addr) { console.log('connected to peer with address ' + addr) |