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

1.0.27Β β€’Β PublicΒ β€’Β Published

Coverage License NPM Version Open Issues Size

πŸ“Ÿ Functional CLI ANSI formatting functions.

Usage

πŸ“¦ Node

Install @lou.codes/ansi as a dependency:

pnpm add @lou.codes/ansi
# or
npm install @lou.codes/ansi
# or
yarn add @lou.codes/ansi

Import it and use it:

import { foregroundRed } from "@lou.codes/ansi";

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

πŸ¦• Deno

Import @lou.codes/ansi using the npm: prefix, and use it directly:

import { foregroundRed } from "npm:@lou.codes/ansi";

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

🌎 Browser

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

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

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

Useful links

/@lou.codes/ansi/

    Package Sidebar

    Install

    npm i @lou.codes/ansi

    Weekly Downloads

    15

    Version

    1.0.27

    License

    MIT

    Unpacked Size

    113 kB

    Total Files

    127

    Last publish

    Collaborators

    • loucyx