Skip to content
This repository has been archived by the owner on Feb 2, 2024. It is now read-only.

Latest commit

 

History

History
75 lines (52 loc) · 2.16 KB

README.md

File metadata and controls

75 lines (52 loc) · 2.16 KB

This repository's code was moved to lou.codes.


Coverage License NPM Version Open Issues

📟 Functional CLI ANSI formatting functions.

Usage

📦 Node

Install @vangware/ansi as a dependency:

pnpm add @vangware/ansi
# or
npm install @vangware/ansi
# or
yarn add @vangware/ansi

Import it and use it:

import { foregroundRed } from "@vangware/ansi";

foregroundRed`Hello world!`; // "Hello world!" in red text.

🦕 Deno

Import @vangware/ansi using the npm: prefix, and use it directly:

import { foregroundRed } from "npm:@vangware/ansi";

foregroundRed`Hello world!`; // "Hello world!" in red text.

🌎 Browser

Import @vangware/ansi using esm.sh, and use it directly:

<script type="module">
	import { foregroundRed } from "https://esm.sh/@vangware/ansi";

	foregroundRed`Hello world!`; // "Hello world!" in red text.
</script>

Useful links