Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/justjavac/deno_ansi
ANSI escape codes for manipulating the terminal
https://github.com/justjavac/deno_ansi
ansi ansi-escape-codes deno deno-ansi
Last synced: 4 months ago
JSON representation
ANSI escape codes for manipulating the terminal
- Host: GitHub
- URL: https://github.com/justjavac/deno_ansi
- Owner: justjavac
- License: mit
- Created: 2020-08-20T06:27:16.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-25T14:11:20.000Z (over 2 years ago)
- Last Synced: 2024-10-04T18:55:24.907Z (4 months ago)
- Topics: ansi, ansi-escape-codes, deno, deno-ansi
- Language: TypeScript
- Homepage:
- Size: 18.6 KB
- Stars: 7
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# deno_ansi
[ANSI escape codes](http://www.termsys.demon.co.uk/vtansi.htm) for manipulating
the terminal.> _base on
> [sindresorhus/ansi-escapes](https://github.com/sindresorhus/ansi-escapes)_[Document](https://doc.deno.land/https://deno.land/x/ansi/mod.ts)
## Usage
```ts
import { cursorLeft, cursorUp } from "https://deno.land/x/ansi/mod.ts";// Moves the cursor two rows up and to the left
console.log(cursorUp(2) + cursorLeft());
//=> '\u001B[2A\u001B[1000D'
```## License
[deno_ansi](https://github.com/justjavac/deno_ansi) is released under the MIT
License. See the bundled [LICENSE](./LICENSE) file for details.