❀

This package has been deprecated

Author message:

🚚 @vangware/ansi is now @lou.codes/ansi

@vangware/ansi
TypeScript icon, indicating that this package has built-in type declarations

6.3.37Β β€’Β PublicΒ β€’Β Published

Coverage License NPM Version Open Issues Size

πŸ“Ÿ 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>

Package Sidebar

Install

npm i @vangware/ansi

Weekly Downloads

104

Version

6.3.37

License

MIT

Unpacked Size

116 kB

Total Files

127

Last publish

Collaborators

  • loucyx