1.1.6 • Published 3 years ago

eapstyles v1.1.6

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

eapstyles

because creative is you

Introduction

Hello programmers, this package is to help you create interactive command line

with just 5kb!(may change at any time) You can build an interactive, elegant, and powerfull commandline, of course

this package is inspired by ansi-styles, with a few changes we changed the writing style to make it easier and more elegant, of course

this package is recomended to use with eapcase

note this package is under MIT lisence

Installation

Before starting to use this package must be installed first using the command below

npm install --global eapstyles

note --global flags to install globally, remove --global if you don't want install globaly

Fast documentation

Usage

import eapstyles using require ("eapstyles")

example:

const { Color, Font, Bg } = require("eapstyles");

// for color example

console.log(Color.green("Success!"));

// for Font example

console.log(Font.underline("Success!"));

// for Bg(background color) example

console.log(Bg.magenta("Success!"));

// for see other color, font, and Bg method ru this

console.dir(Color);

console.log("");

console.dir(Font);

console.log("");

console.dir(Bg);

Color and background color support

colorversion
green1.1.5
white1.1.5
yellow1.1.5
green1.1.5
black1.1.5
gray1.1.5
cyan1.1.5

Font support

fontversion
italic1.1.5
dim1.1.5
underline1.1.5
bold1.1.5

Tips

  1. Use {} at import this package

    example: const { Color, Font, Bg } = require("eapstyles");

  2. Give your project comment

  3. If you are using VS code(visual studio code) install prettier code formatter extension

Consclusion

So that was the documentation for eapstyles, a tool to give command line color. The next update will include more Color, font, or background color, so wait for the next update, ok!.

So good-bye, and don't forget the semicolon, bye bye!

made with LOVE and write in javascript ~ erlangga