This commit is contained in:
oitsjustjose 2017-02-26 17:06:42 -05:00
commit 6b60015c02
9588 changed files with 1149251 additions and 49 deletions

28
node_modules/cli-width/index.js generated vendored Normal file
View file

@ -0,0 +1,28 @@
'use strict';
exports = module.exports = cliWidth;
exports.defaultWidth = 0;
function cliWidth() {
if (process.stdout.getWindowSize) {
return process.stdout.getWindowSize()[0] || exports.defaultWidth;
}
else {
var tty = require('tty');
if (tty.getWindowSize) {
return tty.getWindowSize()[1] || exports.defaultWidth;
}
else {
if (process.env.CLI_WIDTH) {
var width = parseInt(process.env.CLI_WIDTH, 10);
if (!isNaN(width)) {
return width;
}
}
return exports.defaultWidth;
}
}
};