Skip to content
This repository was archived by the owner on Sep 7, 2025. It is now read-only.

covenengineering/vangware-ansi

Repository files navigation

Important

This library is deprecated. Go to coven.engineering to see what we are doing nowadays.


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