console-pos

1.0.2 • Public • Published

console-pos

NPM

NPM version Build Status

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

Package Sidebar

Install

npm i console-pos

Weekly Downloads

1

Version

1.0.2

License

none

Last publish

Collaborators

  • mikrofusion