console-pos
v1.0.2
Published
console-pos returns the current position of your cursor in your terminal.
Downloads
6
Maintainers
Readme
console-pos
console-pos returns the current position of your cursor in your terminal.
Install
$ npm install console-pos
Use
console-pos takes an output stream as a required argument (such as process.stdout).
consolePos = require('console-pos')(process.stdout)
Use row to get the current position of the cursor on the current line.
consolePos.row()
License
MIT © Mike Groseclose