We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
1 parent ea0039a commit badc32dCopy full SHA for badc32d
bin/opencollective.js
@@ -1,4 +1,3 @@
1
-const child_process = require("child_process");
2
const chalk = require("chalk");
3
const fs = require("fs");
4
const path = require("path");
@@ -13,7 +12,7 @@ function emoji(emoji) {
13
12
}
14
15
function print(str = "", color = "dim") {
16
- const terminalCols = process.platform === "win32" ? 80 : parseInt(child_process.execSync("tty -s && tput cols").toString());
+ const terminalCols = 80;
17
// eslint-disable-next-line no-control-regex
18
const ansiEscapeSeq = /\u001b\[[0-9]{1,2}m/g;
19
const strLength = str.replace(ansiEscapeSeq, "").length;
0 commit comments