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

ircjs

v1.1.10

Published

ircJS is a class designed to make it easier to connect and utilise IRC with Javascript

Downloads

36

Readme

Table of Contents

ircJS

Extends EventEmitter3

Extendable base class for ircJS classes

Parameters

  • hostname string Hostname to connect to (optional, default 'irc.irc7.com')
  • port number Server port to connect to (optional, default 6667)
  • useTLS boolean? Describes if SSL/TLS encryption should be used (optional, default false)

Meta

client

The client object object contains multiple properties about the connection

Alias: ircJS.c

Type: Object

Properties

  • away boolean Returns the value true or false depending on whether you are marked as away or not.
  • me string Returns your current nickname.
  • port number Returns the port specified in the constructor whether you are connected to the server or not.
  • realName string Returns the connection's 'realname'. in the constructor whether you are connected or not.
  • server string Returns the name of the server to which you are currently connected.
  • serverTarget string Returns the address specified in the constructor whether you are connected to the server or not.
  • ssl boolean Returns true if TLS/SSL was requested
  • userName string Returns your current username

event

The events object contains multiple properties that are useful for dealing with the handling of events.

Alias: ircJS.e

Type: Object

Properties

  • address string Returns the address of the user associated with an event in the form user@host.
  • chann string Returns the name of the channel for a specific event. For all non-channel events chan will be $null.
  • event string Returns the name of the event that was triggered.
  • fulladdress string Returns the full address of the user triggering an event in the form nick!user@host.
  • nick string Returns the nickname of the user associated with an event.
  • numeric string Returns the nickname of the user associated with an event.
  • rawMsg string Returns raw server line for server events.
  • site string Returns the portion of $address after the @ for the user associated with an event in the form user@host.
  • target string Returns the target of an event.

connect

Connect the ircJS to the host specified in construction

Parameters

  • callback Function? An optional callback for when the client has successfully connected.

Returns object Instance of ircJS

parsePrefix

Converts a string representation of an IRC server/user (prefix) into a javascript object.

Parameters

Returns IRCPrefix

send

Used to send an unterminated string to the IRC server.

Parameters

  • data String? Data to be send to server (optional, default '')

Returns object Current instance of ircJS

IRCPrefix

An object containing information extracted from an IRC prefix

Type: Object

Parameters

  • target
  • text

Properties

  • source string The full IRC prefix used to create this object
  • name string The servername/nick of the prefix
  • user string The username/ident of the prefix
  • host string The hostname of the prefix
  • server string The server that the IRCPrefix is connected to