nanoirc

Console irc client

Usage no npm install needed!

<script type="module">
  import nanoirc from 'https://cdn.skypack.dev/nanoirc';
</script>

README

NANOIRC

NPM version

nanoirc is a very simple console IRC client based on node-irc IRC library.

All the messages of the channels joined are displayed in the console. The user can choice the channel pressing tab: the list of the channels is displayed. Then the user can add the message and press enter to send it. The user may send another message to that channel without prefixing it again with the name of the channel: the message is sent to the last channel used.

The messages are displayed with time, channel and user info. If a message contains the nick of the user, it is displayed in red.

Installation

To install with npm:

npm install -g nanoirc

Tested with Node.js 10.x.

Configuration

nanoirc reads a file in the HOME directory: .nanoirc.json.

The configuration file contains the server, the channels, the nickname info and the colors to use.

For instance,

{
    "server": "irc.freenode.org",
    "nick": "mynick",
    "password": "mypassword",
    "showJoinMessages": false,
    "showPartMessages": false,
    "channels": {
        "irc.freenode.org": [
            "#testnanoirc",
            "#testnanoirc2"
        ],
        "irc.synirc.net": [
            "#testnanoirc",
            "#testnanoirc2"
        ]
    },
    "colors": {
        "timestamp": "yellow",
        "channel": "yellow",
        "user": "green",
        "mentions": "red"
    }
}

Then you can start the client:

nanoirc

You can connect to a server other than the one in .nanoirc.json with:

nanoirc <servername>

For example, nanoirc irc.freenode.org will connect to irc.freenode.org and join all of the channels in the channels: { irc.freenode.org: [...]} section of your .nanoirc.json

Contributors

 project  : node-nanoirc
 repo age : 6 years
 active   : 65 days
 commits  : 139
 files    : 18
 authors  :
   121  icebox                  87.1%
     7  Joe Haines              5.0%
     5  Alberto Santini         3.6%
     3  albertosantini          2.2%
     2  clux                    1.4%
     1  Eirik Albrigtsen        0.7%