chrome-tools 1.0.3 → 1.0.4

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.
Files changed (2) hide show
  1. package/bin/cli.js +4 -1
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -7,6 +7,7 @@
7
7
  * Supports subcommands and shortcut flags for quick access to all data types.
8
8
  */
9
9
 
10
+ import { readFileSync } from "node:fs";
10
11
  import { Command } from "commander";
11
12
  import chalk from "chalk";
12
13
  import Table from "cli-table3";
@@ -66,13 +67,15 @@ function addLimitOption(cmd, defaultLimit = 100) {
66
67
 
67
68
  const program = new Command();
68
69
 
70
+ const pkg = JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf8"));
71
+
69
72
  program
70
73
  .name("chrome-tools")
71
74
  .description(
72
75
  chalk.bold.cyan("Chrome Data Toolkit") +
73
76
  chalk.dim(" — Extract passwords, bookmarks, history, cookies, and more from Chrome on macOS")
74
77
  )
75
- .version("1.0.0")
78
+ .version(pkg.version)
76
79
  .option("--passwords", "Shortcut: list saved passwords")
77
80
  .option("--bookmarks", "Shortcut: list bookmarks")
78
81
  .option("--profiles", "Shortcut: list profiles")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chrome-tools",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "CLI & Node.js library to extract Chrome browser data (bookmarks, history, cookies, autofill, extensions, and more) on macOS",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",