Socket
Socket
Sign inDemoInstall

window-size

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

window-size - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

LICENSE

17

index.js

@@ -1,10 +0,9 @@

/*
* window-size
* https://github.com/jonschlinkert/window-size
/*!
* window-size <https://github.com/jonschlinkert/window-size>
*
* Copyright (c) 2014 Jon Schlinkert
* Copyright (c) 2014-2015 Jon Schlinkert
* Licensed under the MIT license.
*/
const tty = require('tty')
const tty = require('tty');

@@ -27,8 +26,6 @@ module.exports = (function() {

} else {
new Error('Error: could not get window size with tty or process.stdout');
new Error('window-size could not get size with tty or process.stdout.');
}
return {
height: height,
width: width
}
return {height: height, width: width};
})();
{
"name": "window-size",
"description": "Reliable way to to get the height and width of the terminal/console in a node.js environment.",
"version": "0.1.0",
"version": "0.1.1",
"homepage": "https://github.com/jonschlinkert/window-size",

@@ -17,18 +17,20 @@ "author": {

},
"licenses": [
{
"type": "MIT",
"url": "https://github.com/jonschlinkert/window-size/blob/master/LICENSE-MIT"
}
"license": "MIT",
"files": [
"index.js"
],
"main": "index.js",
"engines": {
"node": ">= 0.8.0"
"node": ">= 0.10.0"
},
"keywords": [
"window",
"console",
"height",
"resize",
"size",
"terminal",
"tty"
"tty",
"width",
"window"
]
}

@@ -1,2 +0,2 @@

# window-size [![NPM version](https://badge.fury.io/js/window-size.png)](http://badge.fury.io/js/window-size)
# window-size [![NPM version](https://badge.fury.io/js/window-size.svg)](http://badge.fury.io/js/window-size)

@@ -7,16 +7,32 @@ > Reliable way to to get the height and width of the terminal/console in a node.js environment.

### [npm](npmjs.org)
Install with [npm](https://www.npmjs.com/)
```bash
npm i window-size --save
```sh
$ npm i window-size --save
```
```javascript
## Usage
```js
var size = require('window-size');
size.height; // "80" (rows)
size.width; // "25" (columns)
size.height; // "25" (rows)
size.width; // "80" (columns)
```
## Other projects
* [assemble](http://assemble.io): Static site generator for Grunt.js, Yeoman and Node.js. Used by Zurb Foundation, Zurb Ink, H5BP/Effeckt,… [more](http://assemble.io)
* [micromatch](https://github.com/jonschlinkert/micromatch): Glob matching for javascript/node.js. A drop-in replacement and faster alternative to minimatch and multimatch. Just… [more](https://github.com/jonschlinkert/micromatch)
* [remarkable](https://github.com/jonschlinkert/remarkable): Markdown parser, done right. 100% Commonmark support, extensions, syntax plugins, high speed - all in… [more](https://github.com/jonschlinkert/remarkable)
* [snapdragon](https://github.com/jonschlinkert/snapdragon): snapdragon is an extremely pluggable, powerful and easy-to-use parser-renderer factory.
* [verb](https://github.com/assemble/verb): Documentation generator for GitHub projects. Extremely powerful, easy to use, can generate anything from API… [more](https://github.com/assemble/verb)
## Contributing
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/window-size/issues/new)
## Author
**Jon Schlinkert**
+ [github/jonschlinkert](https://github.com/jonschlinkert)

@@ -26,3 +42,8 @@ + [twitter/jonschlinkert](http://twitter.com/jonschlinkert)

## License
Copyright (c) 2014 Jon Schlinkert
Licensed under the MIT license.
Copyright © 2014-2015 [Jon Schlinkert](https://github.com/jonschlinkert)
Released under the MIT license.
***
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on June 07, 2015._
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc