@sockethub/irc2as 4.0.0-alpha.10 → 4.0.0-alpha.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -11,8 +11,15 @@ of them, and as time goes on hopefully become more compliant (PRs & feedback wel
11
11
  ## Usage
12
12
 
13
13
  ```javascript
14
- var IRC2AS = require('irc2as');
15
- var irc2as = new IRC2AS({server: 'irc.freenode.net'});
14
+ import { IrcToActivityStreams } from '@sockethub/irc2as';
15
+ const irc2as = new IrcToActivityStreams({
16
+ server: 'irc.freenode.net',
17
+ contexts: [
18
+ 'https://www.w3.org/ns/activitystreams',
19
+ 'https://sockethub.org/ns/context/v1.jsonld',
20
+ 'https://sockethub.org/ns/context/platform/irc/v1.jsonld'
21
+ ]
22
+ });
16
23
 
17
24
  irc2as.events.on('incoming', function (asObject) {
18
25
  console.log('activity stream: ', asObject);