How to Install window-size NPM Packages on Ubuntu / Debian

How to Install window-size software package in NPM Packages

window-size : Reliable way to get the height and width of terminal/console, since its not calculated or updated the same way on all platforms, environments and node.js versions.. You can installing window-size npm packages, there are two ways to install this module locally and globaly. -g option is specified to global. Execute the below command.

$ sudo npm install window-size
$ sudo npm install -g window-size

If want to update the window-size package execute the command as below,

$ sudo npm update window-size

Update package globally,

$ npm install -g window-size

Git clone:

$ sudo  git clone https://github.com/rektide/window-size.git
$ sudo  npm install -g ./window-size

window-size@1.1.0 /usr/lib/node_modules/window-size

How to remove window-size package :

You can uninstall or remove this package from your node_modules run the command as below,

$ sudo npm uninstall window-size

Basic Information of window-size NPM Package:

Package Name window-size
Version 1.1.0
Description Reliable way to get the height and width of terminal/console, since its not calculated or updated the same way on all platforms, environments and node.js versions.
Released Date 2017-06-23T15:14:32.058Z
Published by doowb
How to Learn https://www.npmjs.com/package/window-size/tutorial