New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

sq_ansi

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sq_ansi

sq_ansi is a package that will let you color your text and manipulate it's font easily and quickly while also looking good.

latest
npmnpm
Version
1.2.0
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

Version 1.0.0 (BETA)

sq_ansi is a package that will let you color text and manipulat fonts in your console easily!

npm i ansi.js@latest

(suggestions or bugs can be reported to "sqmeone" on discord)

How to use

In your code you can either import example or read here to get started

Importing:

const { example } = require("anci.js");
console.log(example.textColors()) // will log all text colors and how to get them
console.log(example.bgColors()) // will log all text background colors and how to get them
console.log(example.howToCombine()) // will log examples of how to combine multiple features together

Guide:

// How to get text colors
const { colors } = require("sq_ansi") //import { colors } from "sq_ansi" if you use mjs

console.log(colors.red("Red text"))
console.log(colors.blue("Blue text"))
console.log(colors.green("Green text"))
console.log(colors.bg.red("Red highlight"))
console.log(colors.bg.blue("Blue highlight"))
console.log(colors.bg.green("Green highlight"))

// How to get fonts
const { fonts } = require("sq_ansi") //import { fonts } from "sq_ansi" if you use mjs

console.log(fonts.bold("Bolded text"))
console.log(fonts.underline("Bolded text"))
console.log(fonts.strike("Striked text"))

// How to combine them
const { colors, fonts } = require("sq_ansi") //import { colors, fonts } from "sq_ansi" if you use mjs

console.log(colors.red(fonts.bold("Bolded red text")))
console.log(fonts.underline(colors.red(colors.bg.magenta("Underlined red text with a magenta highlight"))))

Keywords

colored text

FAQs

Package last updated on 09 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts