JSPM

  • Created
  • Published
  • Downloads 174
  • Score
    100M100P100Q74714F
  • License MIT

ANSI escape codes for some terminal swag.

Package Exports

  • @visulima/ansi
  • @visulima/ansi/alternative-screen
  • @visulima/ansi/clear
  • @visulima/ansi/cursor
  • @visulima/ansi/erase
  • @visulima/ansi/image
  • @visulima/ansi/link
  • @visulima/ansi/package.json
  • @visulima/ansi/scroll
  • @visulima/ansi/strip

Readme

visulima ansi

ANSI escape codes for some terminal swag.


typescript-image npm-image license-image


Daniel Bannert's open source work is supported by the community on GitHub Sponsors


Install

npm install @visulima/ansi
yarn add @visulima/ansi
pnpm add @visulima/ansi

Usage

import { cursorUp, cursorLeft } from "@visulima/ansi";

// Moves the cursor two rows up and to the left
process.stdout.write(cursorUp(2) + cursorLeft);
//=> '\u001B[2A\u001B[1000D'

or

import { cursorUp, cursorLeft } from "@visulima/ansi/cursor";

// etc, as above...

And for commonjs:

const { cursorUp, cursorLeft } = require("@visulima/ansi");

// etc, as above...

Supported Node.js Versions

Libraries in this ecosystem make the best effort to track Node.js’ release schedule. Here’s a post on why we think this is important.

Contributing

If you would like to help take a look at the list of issues and check our Contributing guidelines.

Note: please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Credits

License

The visulima ansi is open-sourced software licensed under the MIT