tokenmaxxing 0.1.0

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/dist/index.js +38 -0
  2. package/package.json +19 -0
package/dist/index.js ADDED
@@ -0,0 +1,38 @@
1
+ #!/usr/bin/env node
2
+
3
+ // src/index.ts
4
+ var args = process.argv.slice(2);
5
+ var command = args[0];
6
+ function printHelp() {
7
+ console.log(`
8
+ tokenmaxxing - CLI
9
+
10
+ Usage:
11
+ tokenmaxxing <command>
12
+
13
+ Commands:
14
+ help Show this help message
15
+ version Show version
16
+
17
+ Options:
18
+ --help, -h Show help
19
+ --version, -v Show version
20
+ `);
21
+ }
22
+ function printVersion() {
23
+ console.log("tokenmaxxing v0.1.0");
24
+ }
25
+ switch (command) {
26
+ case "version":
27
+ case "--version":
28
+ case "-v":
29
+ printVersion();
30
+ break;
31
+ case "help":
32
+ case "--help":
33
+ case "-h":
34
+ case undefined:
35
+ default:
36
+ printHelp();
37
+ break;
38
+ }
package/package.json ADDED
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "tokenmaxxing",
3
+ "version": "0.1.0",
4
+ "description": "tokenmaxxing CLI",
5
+ "type": "module",
6
+ "bin": {
7
+ "tokenmaxxing": "./dist/index.js"
8
+ },
9
+ "files": [
10
+ "dist"
11
+ ],
12
+ "scripts": {
13
+ "build": "bun build ./src/index.ts --outdir ./dist --target node",
14
+ "dev": "bun run ./src/index.ts"
15
+ },
16
+ "devDependencies": {
17
+ "@types/bun": "latest"
18
+ }
19
+ }