cf-keys 1.0.2 → 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 (3) hide show
  1. package/README.md +7 -3
  2. package/dist/index.js +11 -25
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -13,10 +13,14 @@
13
13
  </p>
14
14
 
15
15
  <p align="center">
16
- <img src="https://img.shields.io/npm/v/cf-keys?style=for-the-badge&logo=npm&logoColor=white" alt="npm version" />
17
- <img src="https://img.shields.io/npm/dt/cf-keys?style=for-the-badge&logo=npm&logoColor=white" alt="npm downloads" />
18
- <img src="https://img.shields.io/github/license/tu-usuario/cf-keys?style=for-the-badge&logo=github&logoColor=white" alt="license" />
16
+ <img src="https://img.shields.io/npm/v/cf-keys?style=for-the-badge&logo=npm&logoColor=white&color=007acc" alt="npm version" />
17
+
18
+ <img src="https://img.shields.io/npm/dt/cf-keys?style=for-the-badge&logo=npm&logoColor=white&color=339933" alt="npm downloads" />
19
+
20
+ <img src="https://img.shields.io/npm/l/cf-keys?style=for-the-badge&color=f39c12" alt="license" />
21
+
19
22
  <img src="https://img.shields.io/badge/Node.js-18+-339933?style=for-the-badge&logo=nodedotjs&logoColor=white" alt="Node.js" />
23
+
20
24
  <img src="https://img.shields.io/badge/TypeScript-5.x-3178C6?style=for-the-badge&logo=typescript&logoColor=white" alt="TypeScript" />
21
25
  </p>
22
26
 
package/dist/index.js CHANGED
@@ -13,6 +13,7 @@ const utils_1 = require("./Commands/utils");
13
13
  const node_process_1 = __importDefault(require("node:process"));
14
14
  const boxen_1 = __importDefault(require("boxen"));
15
15
  const chalk_1 = __importDefault(require("chalk"));
16
+ const pkg = require("../package.json");
16
17
  const program = new commander_1.Command();
17
18
  const logo = chalk_1.default.cyan.bold(`
18
19
  ______ ______ __ __ ______ __ __ _____
@@ -21,26 +22,20 @@ const logo = chalk_1.default.cyan.bold(`
21
22
  / /___ / ___/ / __ // /___ \\ / ___/ /
22
23
  \\____//_/ /_/ /_//_____/ /_/ /____/
23
24
  `);
24
- /**
25
- * Función que genera y muestra el banner de bienvenida.
26
- * Útil para el comando base, 'welcome' y el postinstall de NPM.
27
- */
28
- const showWelcomeBanner = (clear = true) => {
29
- if (clear)
30
- console.clear();
25
+ const showWelcomeBanner = () => {
31
26
  const bannerContent = `${logo}\n` +
32
27
  chalk_1.default.blueBright.bold(" ➔ Security & Utility Suite for Systems Engineering ") +
33
28
  "\n" +
34
29
  chalk_1.default.dim("━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━") +
35
30
  "\n" +
36
- chalk_1.default.white(" Author: ") +
37
- chalk_1.default.cyan("@tu_usuario") +
31
+ chalk_1.default.white(" Status: ") +
32
+ chalk_1.default.green("Active") +
38
33
  chalk_1.default.gray(" | ") +
39
34
  chalk_1.default.white("Version: ") +
40
- chalk_1.default.green("1.0.0") +
41
- "\n" +
42
- chalk_1.default.gray(" Projects: ") +
43
- chalk_1.default.white("ChocoFactory.dev | Kiwi Chan");
35
+ chalk_1.default.yellow(pkg.version) +
36
+ chalk_1.default.gray(" | ") +
37
+ chalk_1.default.white("License: ") +
38
+ chalk_1.default.magenta(pkg.license);
44
39
  console.log((0, boxen_1.default)(bannerContent, {
45
40
  padding: 1,
46
41
  margin: { top: 1, bottom: 1, right: 0, left: 0 },
@@ -51,27 +46,18 @@ const showWelcomeBanner = (clear = true) => {
51
46
  };
52
47
  program
53
48
  .name("cf-keys")
54
- .description("A CLI tool to manage Cloudflare API keys and security tokens")
55
- .version("1.0.0")
49
+ .description(pkg.description)
50
+ .version(pkg.version)
56
51
  .action(() => {
57
52
  showWelcomeBanner();
58
53
  program.help();
59
54
  });
60
55
  program
61
56
  .command("welcome")
62
- .description("Show the professional suite welcome banner")
57
+ .description("Show the suite welcome banner")
63
58
  .action(() => {
64
59
  showWelcomeBanner();
65
60
  });
66
- program
67
- .command("ping")
68
- .description("Ping the Cloudflare API to check connectivity")
69
- .action(() => {
70
- console.info(JSON.stringify({
71
- status: "success",
72
- message: "Pong! Cloudflare API is reachable.",
73
- }, null, 2));
74
- });
75
61
  program.addCommand(password_1.passwordCmd);
76
62
  program.addCommand(youtube_1.youtubeCmd);
77
63
  program.addCommand(jwt_1.jwtCmd);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cf-keys",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Suite global de generación de claves y credenciales",
5
5
  "main": "dist/lib.js",
6
6
  "types": "dist/lib.d.ts",
@@ -9,7 +9,7 @@
9
9
  "start": "node dist/index.js",
10
10
  "dev": "tsc --watch",
11
11
  "prepublishOnly": "npm run build",
12
- "postinstall": "node dist/index.js --version"
12
+ "postinstall": "node dist/index.js welcome"
13
13
  },
14
14
  "keywords": [
15
15
  "security",