@visulima/ansi
v1.0.9
Published
ANSI escape codes for some terminal swag.
Downloads
30
Maintainers
Readme
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...
Related
- ansi-escapes - ANSI escape codes for manipulating the terminal
- sisteransi - ANSI escape codes for some terminal swag.
- console-clear - Clear the console, cross-platform
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