Node/Deno JS Minimalist Library for making colorful terminal experiences.
- Minimalist library to add colors to terminal
- No need to learn hexadecimal color codes
- Print alphabets on terminal easily using Alphabet library
- Supports Deno JS from GitHub and NPM registry
- Smallest library to build terminal based JS Games
yarn add @techous/rainbowjs
# or
npm install @techous/rainbowjs
For quickly using this library you can follow the below commands
# clone the repository
git clone https://github.com/TechOUs/rainbowjs.git
# After this you will get a folder (js module) that you can use in your project
We support the core Rainbow Library for nodejs and denojs mainly
// Method 1 : Create Rainbow module object to access the functions
const Rainbow = require('@techous/rainbowjs');
// Use Rainbow.<METHOD>
console.log(Rainbow.checkFormat('blink'));
// OUTPUT : true
// Method 2 : Use function names directly which you want to import
const {checkFormat} = require('#techous/rainbowjs');
console.log(checkFormat('blink'));
// OUTPUT : true
// Method 1: Use code directly from github
import {
checkFormat
} from 'https://raw.githubusercontent.com/TechOUs/rainbowjs/master/src/deno/index.js'
console.log(checkFormat('blink'));
// OUTPUT : true
// Method 2: Use code from npm package cdn
import {
checkFormat
} from 'https://cdn.skypack.dev/@techous/rainbowjs/deno';
console.log(checkFormat('blink'));
// OUTPUT : true
We added this new library in version 2.0.0 to print the Alphabets easily on the terminal that reduces the time to print the alphabets again and again
// Method 1 : Create Rainbow module object to access the functions
const Alphabet = require('@techous/rainbowjs/Alphabet');
// Use Alphabet.<METHOD>
Alphabet.printString('#', 'Tests', ' ');
// OUTPUT
// ##### ### ## # ##
// # # # # ### #
// # ##### # # #
// # # # # #
// # #### ## ## ##
// Method 2 : Use function names directly which you want to import
const {printString} = require('@techous/rainbowjs/Alphabet');
printString('#', 'Tests', ' ');
// OUTPUT
// ##### ### ## # ##
// # # # # ### #
// # ##### # # #
// # # # # #
// # #### ## ## ##
// Method 1 : Use the code directly from github
import {
getString,
printString
} from 'https://raw.githubusercontent.com/TechOUs/rainbowjs/master/src/deno/Alphabet.js'
printString('#', 'Tests', ' ');
// OUTPUT
// ##### ### ## # ##
// # # # # ### #
// # ##### # # #
// # # # # #
// # #### ## ## ##
// Method 2 : Using npm cdn
import {
getString,
printString
} from 'https://cdn.skypack.dev/@techous/rainbowjs/deno/Alphabet.js'
printString('#', 'Tests', ' ');
// OUTPUT
// ##### ### ## # ##
// # # # # ### #
// # ##### # # #
// # # # # #
// # #### ## ## ##
Coming Soon!
For contribution guidelines please follow this guide