Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

irc2as

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

irc2as

IRC to ActivityStreams objects

  • 3.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

IRC2AS

Parses the IRC protocol into ActivtyStreams objects.

Overview

Currently a very simple library to parse incoming IRC protocol messages and generate activity streams. The activity streams are not fully AS2.0 compliant, but aim to be shaped in the spirit of them, and as time goes on hopefully become more compliant (PRs & feedback welcome).

Usage

    var IRC2AS = require('irc2as');
    var irc2as = new IRC2AS({server: 'irc.freenode.net'});

    irc2as.events.on('incoming', function (asObject) {
      console.log('activity stream: ', asObject);
    });

    irc2as.events.on('error', function (asObject) {
      console.log('error response to something we sent: ', asObject);
    });

    irc2as.events.on('unprocessed', function (line) {
      console.log(`irc line we don't know what to do with (yet), PRs welcome`, line);
    });

    irc2as.events.on('pong', function (timestamp) {
      console.log('confirmation of something we sent: ', timestamp);
    });

    irc2as.events.on('ping', function (timestamp) {
      console.log('sending ping to server at ', timestamp);
    });

    // ....  some code to get IRC socket messages
    ircClient.on('data', this.irc2as.input.bind(this.irc2as));

License

MIT

Maintainer

Nick Jennings nick@silverbucket.net

Keywords

FAQs

Package last updated on 24 Nov 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc