open-index/open-npm huggingface dataset:
npm package: @metsjeesus/irc-framework
Description: A better IRC framework for node.js
Author: prawnsalad
Latest version: 2.5.1

# irc-framework
A better IRC framework for node.js. For bots and full clients. (a work in progress)

### Aims
* Lightweight
* Performant
* Very easy to get going out of the box
* Grows as needed for larger applications
* IRCv3 compliant
* Multiple (+ auto detected) encoding support
* Complete test suite

### Status
Currently ripped out of the Kiwi IRC project and running independently.

Todo:
* ~~Remove all references to any Kiwi IRC specific internals.~~
* Implement an event proxy for `Channel` objects to enable `channel.on('event', ..)`.
* ~~Do something nice with all the commands in commands/misc.js, maybe even delete them and expect the application to handle these via the `raw` event.~~
* ~~Rename `commands/` to `command_handlers/`~~
* Implement some form of debugging. Look into the `debug` module?


#### A simple and low-boilerplate framework to build IRC bots.
~~~javascript
var bot = new IRC.Client();
bot.connect({
	host: 'irc.freenode.net',
	port: 6667,
	nick: 'prawnsbot'
});

bot.on('message', function(event) {
  	if (event.message.indexOf('hello') === 0) {
  		  event.reply('Hi!');
  	}
  	
  	if (event.message.match(/^!join /)) {
  	    var to_join = event.message.split(' ');
  		event.reply('Joining ' + to_join + '..');
  		bot.join(to_join);
  	}
});


// Or a quicker to match messages...
bot.matchMessage(/^hi/, function(event) {
	event.reply('hello there!');
});
~~~

#### Channel/buffer objects. Great for building clients
~~~javascript
var bot = new IRC.Client();
bot.connect({
	host: 'irc.freenode.net',
	port: 6667,
	nick: 'prawnsbot'
});

var buffers = [];
bot.on('registered', function() {
	var channel = bot.channel('#prawnsalad');
	buffers.push(channel);
	
	channel.join();
	channel.say('Hi!');
	
	channel.updateUserList(function() {
		console.log(channel.users);
	});

	// Or you could even stream the channel messages elsewhere
	var stream = channel.stream();
	stream.pipe(process.stdout);
});
~~~


#### Middleware
~~~javascript
function ExampleMiddleware() {
	return function(client, raw_events, parsed_events) {
		parsed_events.use(theMiddleware);
	}


	function theMiddleware(command, event, client, next) {
		if (command === 'registered') {
			if (client.options.nickserv) {
				var options = client.options.nickserv;
				client.say('nickserv', 'identify ' + options.account + ' ' + options.password);
			}
		}

		if (command === 'message' && event.event.nick.toLowerCase() === 'nickserv') {
			// Handle success/retries/failures
		}

		next();
	}
}


var irc_bot = new IRC.Client();
irc_bot.use(ExampleMiddleware());
~~~
npm package: @mettz/nano-react-cli
Description: Hard to get more minimal than this React app.
Author: Mattia Guazzaloca
Latest version: 0.2.1

<p align="center">
  <img alt="nano logo" src="./static/logo.png" width="64">
</p>
<p align="center">
  🔍 A truly minimal replacement for Create-React-App.
</p>

<p align="center">
  <img alt="npm version" src="https://badgen.net/npm/v/nano-react-app">
  <img alt="npm downloads" src="https://badgen.net/npm/dt/nano-react-app">
  <img alt="mit license" src="https://badgen.net/npm/license/nano-react-app">
</p>

---

Use `nano-react-app` for a truly minimal React app:

<img alt="file structure" src="./static/files.png" width="128">

_**A full React project in only 6 files**_

## Install

Try now with:

```
npx nano-react-app my-app
```

For Typescript, run this:

```
npx nano-react-app my-app --ts
```

- Default JS template: https://github.com/nano-react-app/template-js
- Typescript template: https://github.com/nano-react-app/template-ts

## Features

- 📦 Uses Parcel with **zero-config** instead of Webpack
- 🚫 **No eject**, because it is already so minimal
- 🚫 **No linting**
- 🚫 **No service worker**
- ⚡ `npm start` and `npm run build` scripts for dev server and production build

## Usage

For App configuration and usage info, see the respective template's README.