grab-url 0.9.132 → 0.9.133
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/grab-url-cli.js +7 -1
package/package.json
CHANGED
package/src/grab-url-cli.js
CHANGED
|
@@ -7,7 +7,13 @@ import { Readable } from 'stream';
|
|
|
7
7
|
import cliProgress from 'cli-progress';
|
|
8
8
|
import chalk from 'chalk';
|
|
9
9
|
import ora from 'ora';
|
|
10
|
-
import
|
|
10
|
+
import { readFileSync } from 'fs';
|
|
11
|
+
import { fileURLToPath } from 'url';
|
|
12
|
+
import { dirname, join } from 'path';
|
|
13
|
+
|
|
14
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
15
|
+
const __dirname = dirname(__filename);
|
|
16
|
+
const spinners = JSON.parse(readFileSync(join(__dirname, 'spinners.json'), 'utf8'));
|
|
11
17
|
import readline from 'readline';
|
|
12
18
|
import { GlobalKeyboardListener } from 'node-global-key-listener';
|
|
13
19
|
|