mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2025-09-07 07:27:20 +00:00
push all website files
This commit is contained in:
30
website/functions/node_modules/window-size/cli.js
generated
vendored
Normal file
30
website/functions/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();
|
||||
}
|
Reference in New Issue
Block a user