fent / Irc Colors.js
Licence: mit
Color and formatting for irc bots made easy. Inspired by colors.js and cli-color.
Stars: ✭ 26
Programming Languages
javascript
184084 projects - #8 most used programming language
Projects that are alternatives of or similar to Irc Colors.js
Termenv
Advanced ANSI style & color support for your terminal applications
Stars: ✭ 555 (+2034.62%)
Mutual labels: colors
Colored
(Rust) Coloring terminal so simple you already know how to do it !
Stars: ✭ 715 (+2650%)
Mutual labels: colors
Sopel
🤖💬 An easy-to-use and highly extensible IRC Bot framework. Formerly Willie.
Stars: ✭ 894 (+3338.46%)
Mutual labels: irc
Flowing Gradient
Android Library to make a flowing gradient effect, similar to that used in Instagram Android login screen
Stars: ✭ 701 (+2596.15%)
Mutual labels: colors
Convos
Convos 👥 is the simplest way to use IRC in your browser
Stars: ✭ 789 (+2934.62%)
Mutual labels: irc
Termcolor
Termcolor is a header-only C++ library for printing colored messages to the terminal. Written just for fun with a help of the Force.
Stars: ✭ 533 (+1950%)
Mutual labels: colors
Colorful
A curated list of awesome resources to choose your next color scheme
Stars: ✭ 702 (+2600%)
Mutual labels: colors
Ircv3 Specifications
IRCv3 specifications | Roadmap: https://git.io/IRCv3-Roadmap | Code of conduct: http://ircv3.net/conduct.html
Stars: ✭ 635 (+2342.31%)
Mutual labels: irc
Styled System
⬢ Style props for rapid UI development
Stars: ✭ 7,126 (+27307.69%)
Mutual labels: colors
Pastel
Terminal output styling with intuitive and clean API.
Stars: ✭ 569 (+2088.46%)
Mutual labels: colors
Irclogger
A Perl/PHP tool to log an IRC channel and make it searchable on the Web
Stars: ✭ 18 (-30.77%)
Mutual labels: irc
Django Admin Interface
django's default admin interface made customizable. popup windows replaced by modals. :mage: ⚡️
Stars: ✭ 717 (+2657.69%)
Mutual labels: colors
Irackbot
Bridge between Slack and IRC channels allowing message filtering and logging while keeping communication public
Stars: ✭ 25 (-3.85%)
Mutual labels: irc
Torpedo
Pluggable, multi-network asynchronous chat bot written in Go
Stars: ✭ 19 (-26.92%)
Mutual labels: irc
irc.colors.js
Easily use colored output and formatting in your irc bots.
Usage
const c = require('irc-colors');
...
ircbot.say('#chan', c.blue('hello everyone')); // prints blue text
ircbot.say('#chan', c.underline.red('WARNING')); // can be chained
ircbot.say('#chan', c.white.bgblack('inverted')); // white text with black background
warn = c.bold.red.bgyellow;
ircbot.say('#chan', warn('BIGGER WARNING')); // bold red text with yellow background
ircbot.say('#chan', c.rainbow('having fun!'); // prints rainbow colored text
But wait, there's more!
If you don't mind changing the prototype of the String object, then use the global() function.
require('irc-colors').global()
...
ircbot.say('#chan', 'say something'.irc.red()); // prints red text
ircbot.say('#chan', 'hi everyone!'.irc.green.bold()); // prints green bold text
ircbot.say('#chan', 'etc etc'.irc.underline.grey.bgblack()) // chains work too
Global syntax was inspired by colors.js and because of that, there's possibility that you might want to use that module along with this one. That's why the irc property of a String needs to be called first to use the formatting functions.
Colors
Original name or alternate can be used, without spaces
bot.say('#chat', c.bluecyan('hi'));
Styles
Extras
Strip
You can also strip out any colors/style from IRC messages.
stripColors
stripStyle
stripColorsAndStyle
const c = require('irc-colors');
ircbot.on('message', (from, message) => {
console.log(c.stripColorsAndStyle(message));
});
Install
npm install irc-colors
Tests
Tests are written with vows
npm test
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].