# Install window-size with npm

Reliable way to get the height and width of terminal/console, since it's not calculated or updated the same way on all platforms, environments and node.js versions. Version 1.1.1 via npm; verified 2018-07-27. Also installable with debian: sudo apt install window-size.

## Install

```sh
sudo av install npm:window-size
```

Additional install commands:

### Portable and language managers

- npm (100%):

```sh
npm install -g window-size
```

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:window-size
- **Package manager:** npm
- **Package manager page:** <https://www.npmjs.com/package/window-size>
- **Version:** 1.1.1
- **Source summary:** Reliable way to get the height and width of terminal/console, since it's not calculated or updated the same way on all platforms, environments and node.js versions.
- **Homepage:** <https://github.com/jonschlinkert/window-size>
- **Repository:** <https://github.com/jonschlinkert/window-size>
- **Upstream docs:** <https://github.com/jonschlinkert/window-size>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/window-size/-/window-size-1.1.1.tgz>
- **Issue tracker:** <https://github.com/jonschlinkert/window-size/issues>
- **Published:** 2018-07-27T20:21:10.829Z
- **Last updated:** 2018-07-27T20:21:10.829Z
- **Generated:** 2026-08-04T22:13:35+00:00

## Executables

- window-size (cli)
- window-size (alias)

## Dependencies

- define-property
- is-number

## Build dependencies

- gulp-format-md
- justified
- mocha

## Install behavior

- Post-install hook: not defined
- Bottle: not available

## Freshness

- Page generated: 2026-08-04
- Package-manager version: 1.1.1
- Package-manager updated: 2018-07-27
- Local data: ok
- Upstream repository: https://github.com/jonschlinkert/window-size
- warning: The package-manager record has not been updated in over a year.
- info: No cached GitHub release or tag data was available.

## Security Notes

No matching local secret-handling manifest was found for window-size. Package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** npm registry
- **Dist Tags:** Latest: 1.1.1
- **Version Count:** 10
- **Maintainers:** doowb, jonschlinkert
- **Author:** Jon Schlinkert
- **Publisher:** doowb
- **Engines:** Node: >= 0.10.0
- **Integrity:** sha512-5D/9vujkmVQ7pSmc0SCBmHXbkv6eaHwXEx65MywhmUMsI8sGqJ972APq1lotfcwMKPFLuCFfL8xGHLIp7jaBmA==
- **Shasum:** 9858586580ada78ab26ecd6978a6e03115c1af20
- **Unpacked Size:** 12,638
- **File Count:** 3
- **Created At:** 2014-02-15T03:41:48.322Z
- **Latest Published At:** 2018-07-27T20:21:10.829Z
- **Modified At:** 2022-06-29T02:06:27.680Z

## Other Package-Manager Records

- Debian apt - window-size - 1.1.1+~1.1.0-1: normalized package name match | Debian stable package indexes: window-size from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | get the height and width of the terminal | https://github.com/jonschlinkert/window-size
- Ubuntu apt - window-size - 1.1.1+~1.1.0-1: normalized package name match | Ubuntu 24.04 LTS package indexes: window-size from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | get the height and width of the terminal | https://github.com/jonschlinkert/window-size


## Related links

- [Terminal utility packages](https://pkg.so/terminal-utilities/) - Matched curated package taxonomy and local package facts.
- [node-fzf](https://pkg.so/npm/node-fzf/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, node, system, terminal, terminal-tools.
- [macos-term-size](https://pkg.so/brew/macos-term-size/) - Local package facts share a topical domain. Shared terms: cli, get, size, system, term.
- [mux](https://pkg.so/npm/mux/) - Local package facts share a topical domain. Shared terms: cli, system, terminal, terminal-tools.

## Sources

- pkg.so package database
- package-page enrichment
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
