npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

colorful-logify

v1.0.0

Published

Add colorful and styled text to your Node.js command-line applications using Minecraft-inspired codes.

Downloads

9

Readme

Colorful Logify

Colorful Logify is a Node.js package that allows you to easily add colorful and formatted text output to your command-line applications. Inspired by the text formatting used in games like Minecraft, Colorful Logify empowers you to create visually appealing and informative console messages.

Features

  • Colorful Messages: Enhance your CLI applications with colorful and eye-catching text that captures user attention.
  • Text Formatting: Apply various text formats such as bold, italic, underline, and more to emphasize your message.
  • Easy Integration: Simply incorporate Colorful Logify into your existing Node.js projects to instantly add text styling.
  • Minecraft-Inspired: Colorful Logify uses a similar syntax to Minecraft's text formatting codes for familiarity and ease of use.

Installation

You can install Colorful Logify via npm:

npm install colorful-logify

Usage

To use Colorful Logify in your project, follow these steps:

  1. Once installed, you can import the package into your Node.js script using the following line:
const { ColorLogger } = require('colorful-logify');
  1. Create an instance of ColorLogger by invoking its constructor:
const logger = new ColorLogger();
  1. With the instance created, you can now send styled messages to the console using the .send() method. To style your messages, you'll use special color and formatting codes, similar to those found in Minecraft's text formatting system.

Example usage (Method 1):

const example1 = new ColorLogger();
example1.send("&4Hello &b&lworld!");

Example usage (Method 2 - StaticStyle):

const StaticStyleLogger = ColorLogger.StaticStyle({
    styles: ["&6&n", "&b", "&m", "&5"]
});
const example2 = new StaticStyleLogger();
example2.send("Hello world!");

In both methods, the .send() method is used to print styled messages to the console. Experiment with different color and format codes to achieve the desired visual effects in your command-line output.

Remember, colorful-logify empowers you to bring a touch of color and styling to your command-line applications, enhancing their readability and engagement.

Color Codes and Formatting

Colorful Logify supports a range of color codes and formatting options. These codes are similar to those used in Minecraft for styling text. Below is a table of color codes and their descriptions:

| Code | Description | |--------|-----------------------| | &0 | Black | | &1 | Dark Blue | | &2 | Dark Green | | &3 | Dark Aqua | | &4 | Dark Red | | &5 | Dark Purple | | &6 | Gold | | &7 | Gray | | &8 | Dark Gray | | &9 | Blue | | &a | Green | | &b | Aqua | | &c | Red | | &d | Light Purple | | &e | Yellow | | &f | White | | &l | Bold | | &o | Italic | | &n | Underline | | &m | Strikethrough | | &r | Reset Format/Color |

Feel free to experiment with different codes and create visually appealing messages for your command-line applications.

Contributing

Contributions are welcome! If you have any ideas for improvements or new features, feel free to reach out to us on Discord. You can contact us at JainaGam3r45 to discuss your ideas or to collaborate. We value your input and appreciate your contributions.