npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

libquassel

v4.0.0

Published

Javascript lib to connect and interact with Quassel IRC core

Downloads

37

Readme

libquassel

Javascript library to connect and interact with Quassel IRC server.

Install

npm install --production libquassel

Use in browser

You just need to import dist/libquassel.js in your HTML page.

Development

npm install libquassel

In order to create a browser compatible file, run the following commands

# use browserify to build on change
npm run watch
# before commit, make the dev version + minified version + the doc
npm run build

3.0 breaking changes

Version 3.0 introduces the following breaking changes:

  • message.Type has been superseded by message.Types, and all its constants are now UPPERCASE
  • channel.active has been superseded by channel.isActive
  • channel.isChannel() has been superseded by channel.isChannel
  • channel.isHighlighted() has been superseded by channel.isHighlighted
  • message.isHighlighted() has been superseded by message.isHighlighted
  • message.isSelf() has been superseded by message.isSelf
  • network.getBufferCollection() and network.getBufferMap() have been merged into networks.buffers
  • networkCollection.findBuffer(...) and networkCollection.get(...) have been merged into network.getBuffer(...)
  • The majority of setter methods has been replaced by direct affectation to the target property
    • e.g. network.setName(name) as been superseded by network.name = name
  • The majority of getter methods has been replaced by direct access to the target property
    • e.g. network.getStatusBuffer() as been superseded by network.statusBuffer

node specific

  • Client(...).connect method expects a Socket or any other Duplex as parameter.

browser specific

  • libquassel is available as a global object.
  • Client(...).connect method expects a libquassel.WebSocketStream or any other Duplex as parameter.

Getting Started

node

const { Client } = require('libquassel');
const net = require('net');

const socket = net.createConnection({
  host: "localhost",
  port: 4242
});

const quassel = new Client((next) => next("user", "password"));

quassel.on('network.init', (networkId) => {
    network = quassel.networks.get(networkId);
    // ...
});

// ...

quassel.connect(socket);

browser

<!-- In your HTML -->
<script src="/path/to/libquassel.js"></script>
// libquassel in available as a global in browser
const socket = new libquassel.WebSocketStream('wss://domain.tld:12345', ['binary', 'base64']);
const quassel = new libquassel.Client((next) => next("user", "password"));

quassel.on('network.init', (networkId) => {
    network = quassel.networks.get(networkId);
    // ...
});

// ...

quassel.connect(socket);

Documentation

3.1.0

Examples

See test folder for examples.

Changelog

3.1.0

  • Add support for core highlight rules

3.1.1

  • Update dependencies

License

Copyright (c) 2019 Joël Charles Licensed under the MIT license.