# cli-position

> Sets the current position of the CLI or modifies it relative to its current position.

Latest version **1.0.1** (published 2015-09-13) · ISC license · 0 weekly downloads

## Install

```sh
npm install cli-position
pnpm add cli-position
yarn add cli-position
bun add cli-position
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2015-09-13 |
| First published | 2015-08-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Greg Walker |
| Maintainers | mgwalker |
| Keywords | cli, position, cursor |

## Links

- npm: https://www.npmjs.com/package/cli-position
- Repository: https://github.com/mgwalker/cli-position
- Homepage: https://github.com/mgwalker/cli-position#readme
- Issues: https://github.com/mgwalker/cli-position/issues
- npm.io page: https://npm.io/package/cli-position

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2015-09-13
- 1.0.0 — 2015-08-29

## README

# cli-position

Sets the current position of the CLI or modifies it relative to its current position.

## Installation

```bash
npm install --save cli-position
```

## Usage

Exports a single object.  Just require it to get the object:

```javascript
var pos = require("cli-position");
```

|Function|Description|
|---:|:---|
|**`.columns()`**|Returns the number of columns in the CLI
|**`.rows()`**|Returns the number of rows in the CLI
|**`.center()`**|Centers the cursor in the CLI.  Returns the object for chaining.
|**`.moveTo(x, y)`**|Moves the cursor to the specified location; doesn't check for validty, just rolls with it.  Returns the object for chaining.
|**`.moveUp(rows)`**|Moves the cursor up the specified number of rows.  If the number is negative, moves down instead.  Returns the object for chaining.
|**`.moveDown(rows)`**|Moves the cursor down the specified number of rows.  If the number is negative, moves up instead.  Returns the object for chaining.
|**`.moveLeft(columns)`**|Moves the cursor left the specified number of columns.  If the number is negative, moves right instead.  Returns the object for chaining.
|**`.moveRight(columns)`**|Moves the cursor right the specified number of columns.  If the number is negative, moves left instead.  Returns the object for chaining.

---
_Source: https://npm.io/package/cli-position · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
