Skip to content

Commit

Permalink
Rename package from term-size to terminal-size
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Nov 4, 2023
1 parent 89f5f0d commit 0c5699b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Reliably get the terminal window size.
@example
```
import terminalSize from 'term-size';
import terminalSize from 'terminal-size';
terminalSize();
//=> {columns: 143, rows: 24}
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "term-size",
"name": "terminal-size",
"version": "3.0.2",
"description": "Reliably get the terminal window size (columns & rows)",
"license": "MIT",
"repository": "sindresorhus/term-size",
"repository": "sindresorhus/terminal-size",
"funding": "https://github.com/sponsors/sindresorhus",
"author": {
"name": "Sindre Sorhus",
Expand Down
12 changes: 4 additions & 8 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# term-size
# terminal-size

> Reliably get the terminal window size
Expand All @@ -9,13 +9,13 @@ Confirmed working on macOS, Linux, and Windows.
## Install

```sh
npm install term-size
npm install terminal-size
```

## Usage

```js
import terminalSize from 'term-size';
import terminalSize from 'terminal-size';

terminalSize();
//=> {columns: 143, rows: 24}
Expand All @@ -27,10 +27,6 @@ terminalSize();

Returns an `object` with `columns` and `rows` properties.

## Info

The bundled macOS binary is signed and hardened.

## Related

- [term-size-cli](https://github.com/sindresorhus/term-size-cli) - CLI for this module
- [terminal-size-cli](https://github.com/sindresorhus/terminal-size-cli) - CLI for this module

0 comments on commit 0c5699b

Please sign in to comment.