mirror of
https://github.com/musix-org/musix-oss
synced 2025-06-16 22:06:01 +00:00
Modules
This commit is contained in:
21
node_modules/window-size/LICENSE
generated
vendored
Normal file
21
node_modules/window-size/LICENSE
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015, Jon Schlinkert.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
45
node_modules/window-size/README.md
generated
vendored
Normal file
45
node_modules/window-size/README.md
generated
vendored
Normal file
@ -0,0 +1,45 @@
|
||||
# window-size [](http://badge.fury.io/js/window-size) [](https://travis-ci.org/jonschlinkert/window-size)
|
||||
|
||||
> Reliable way to to get the height and width of the terminal/console in a node.js environment.
|
||||
|
||||
## Install
|
||||
|
||||
Install with [npm](https://www.npmjs.com/)
|
||||
|
||||
```sh
|
||||
$ npm i window-size --save
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var size = require('window-size');
|
||||
size.height; // "25" (rows)
|
||||
size.width; // "80" (columns)
|
||||
```
|
||||
|
||||
## Other projects
|
||||
|
||||
* [base-cli](https://www.npmjs.com/package/base-cli): Plugin for base-methods that maps built-in methods to CLI args (also supports methods from a… [more](https://www.npmjs.com/package/base-cli) | [homepage](https://github.com/jonschlinkert/base-cli)
|
||||
* [lint-deps](https://www.npmjs.com/package/lint-deps): CLI tool that tells you when dependencies are missing from package.json and offers you a… [more](https://www.npmjs.com/package/lint-deps) | [homepage](https://github.com/jonschlinkert/lint-deps)
|
||||
* [yargs](https://www.npmjs.com/package/yargs): Light-weight option parsing with an argv hash. No optstrings attached. | [homepage](https://github.com/bcoe/yargs#readme)
|
||||
|
||||
## 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)
|
||||
+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
|
||||
|
||||
## 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 November 15, 2015._
|
30
node_modules/window-size/cli.js
generated
vendored
Normal file
30
node_modules/window-size/cli.js
generated
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
#!/usr/bin/env node
|
||||
'use strict';
|
||||
var helpText = ['Usage',
|
||||
' $ window-size',
|
||||
'',
|
||||
'Example',
|
||||
' $ window-size',
|
||||
' height: 40 ',
|
||||
' width : 145',
|
||||
''].join('\n');
|
||||
|
||||
function showSize () {
|
||||
var size = require('./');
|
||||
console.log('height: ' + size.height);
|
||||
console.log('width : ' + size.width);
|
||||
}
|
||||
|
||||
if (process.argv.length > 2) {
|
||||
switch (process.argv[2]) {
|
||||
case 'help':
|
||||
case '--help':
|
||||
case '-h':
|
||||
console.log(helpText);
|
||||
break;
|
||||
default:
|
||||
showSize();
|
||||
}
|
||||
} else {
|
||||
showSize();
|
||||
}
|
32
node_modules/window-size/index.js
generated
vendored
Normal file
32
node_modules/window-size/index.js
generated
vendored
Normal file
@ -0,0 +1,32 @@
|
||||
'use strict';
|
||||
|
||||
/*!
|
||||
* window-size <https://github.com/jonschlinkert/window-size>
|
||||
*
|
||||
* Copyright (c) 2014-2015 Jon Schlinkert
|
||||
* Licensed under the MIT license.
|
||||
*/
|
||||
|
||||
var tty = require('tty');
|
||||
|
||||
module.exports = (function () {
|
||||
var width;
|
||||
var height;
|
||||
|
||||
if (tty.isatty(1) && tty.isatty(2)) {
|
||||
if (process.stdout.getWindowSize) {
|
||||
width = process.stdout.getWindowSize(1)[0];
|
||||
height = process.stdout.getWindowSize(1)[1];
|
||||
} else if (tty.getWindowSize) {
|
||||
width = tty.getWindowSize()[1];
|
||||
height = tty.getWindowSize()[0];
|
||||
} else if (process.stdout.columns && process.stdout.rows) {
|
||||
height = process.stdout.columns;
|
||||
width = process.stdout.rows;
|
||||
}
|
||||
} else {
|
||||
Error('window-size could not get size with tty or process.stdout.');
|
||||
}
|
||||
|
||||
return {height: height, width: width};
|
||||
})();
|
84
node_modules/window-size/package.json
generated
vendored
Normal file
84
node_modules/window-size/package.json
generated
vendored
Normal file
@ -0,0 +1,84 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"window-size@0.1.4",
|
||||
"C:\\Users\\matia\\Musix"
|
||||
]
|
||||
],
|
||||
"_from": "window-size@0.1.4",
|
||||
"_id": "window-size@0.1.4",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-+OGqHuWlPsW/FR/6CXQqatdpeHY=",
|
||||
"_location": "/window-size",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "window-size@0.1.4",
|
||||
"name": "window-size",
|
||||
"escapedName": "window-size",
|
||||
"rawSpec": "0.1.4",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "0.1.4"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/yargs"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/window-size/-/window-size-0.1.4.tgz",
|
||||
"_spec": "0.1.4",
|
||||
"_where": "C:\\Users\\matia\\Musix",
|
||||
"author": {
|
||||
"name": "Jon Schlinkert",
|
||||
"url": "https://github.com/jonschlinkert"
|
||||
},
|
||||
"bin": {
|
||||
"window-size": "cli.js"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/jonschlinkert/window-size/issues"
|
||||
},
|
||||
"description": "Reliable way to to get the height and width of the terminal/console in a node.js environment.",
|
||||
"devDependencies": {
|
||||
"semistandard": "^7.0.2",
|
||||
"tap": "^2.2.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.10.0"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"cli.js"
|
||||
],
|
||||
"homepage": "https://github.com/jonschlinkert/window-size",
|
||||
"keywords": [
|
||||
"console",
|
||||
"height",
|
||||
"resize",
|
||||
"size",
|
||||
"terminal",
|
||||
"tty",
|
||||
"width",
|
||||
"window"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"name": "window-size",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/jonschlinkert/window-size.git"
|
||||
},
|
||||
"scripts": {
|
||||
"pretest": "semistandard",
|
||||
"test": "tap --coverage test.js"
|
||||
},
|
||||
"verb": {
|
||||
"related": {
|
||||
"list": [
|
||||
"yargs",
|
||||
"lint-deps",
|
||||
"base-cli"
|
||||
]
|
||||
}
|
||||
},
|
||||
"version": "0.1.4"
|
||||
}
|
Reference in New Issue
Block a user