grab-url 0.9.136 → 0.9.137

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 CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "grab-url",
3
3
  "description": "📥 Generate Request to API from Browser",
4
4
  "type": "module",
5
- "version": "0.9.136",
5
+ "version": "0.9.137",
6
6
  "author": "vtempest",
7
7
  "license": "rights.institute/prosper",
8
8
  "repository": {
@@ -621,16 +621,16 @@ formatTotalSpeed(bytesPerSecond) {
621
621
  */
622
622
  async downloadMultipleFiles(downloads) {
623
623
  try {
624
- console.log(this.colors.primary(`🚀 Starting download of ${downloads.length} files...\n`));
624
+ console.log(this.colors.primary(`Starting ${downloads.length} downloads...\n`));
625
625
 
626
626
  // Set up global keyboard listener for pause/resume and add URL BEFORE starting downloads
627
627
  this.setupGlobalKeyboardListener();
628
628
 
629
- // Print header row with emojis
629
+ // Print header row
630
630
  this.printHeaderRow();
631
631
 
632
- // Show keyboard shortcut info for pause/resume in multibar view
633
- console.log(this.colors.info('💡 Press p to pause/resume downloads, a to add URL.'));
632
+ // Show keyboard shortcuts
633
+ console.log(this.colors.info('Press p to pause/resume, a to add URL'));
634
634
 
635
635
  // Get random colors for the multibar
636
636
  const masterBarColor = this.getRandomBarColor();
@@ -2031,8 +2031,8 @@ console.error(chalk.red('Reason: ') + reason);
2031
2031
  process.exit(1);
2032
2032
  });
2033
2033
 
2034
- // Run the CLI if this file is executed directly
2035
- if (import.meta.url === `file://${process.argv[1]}` || process.argv[1]?.includes('grab-url')) {
2034
+ // Run the CLI if there are command line arguments (indicating it's being run as a CLI tool)
2035
+ if (process.argv.length > 2) {
2036
2036
  main().catch((error) => {
2037
2037
  console.error(chalk.red.bold('💥 Fatal error: ') + error.message);
2038
2038
  process.exit(1);