@lou.codes/ansi
v1.0.29
Published
π Functional CLI ANSI formatter
Downloads
20
Maintainers
Readme
π 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
- π Documentation: TypeDoc generated documentation.
- β³ Changelog: List of changes between versions.
- β Tests Coverage: Coveralls page with tests coverage.