0.0.1 • Published 2 years ago

@devteks/cursor v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@devteks/cursor

Hide, show and toggle terminal cursor

how to use

$ npm install @devteks/cursor --save

Usage:

import:

const { showCursor, hideCursor, toggleCursor } = require('@devteks/cursor');
// OR
import { showCursor, hideCursor, toggleCursor } from '@devteks/cursor';
async function main() {
    hideCursor();
    // process some thing
}

main();
// when the process exits the cursor will be shown again