devfetch 0.0.0-stage → 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 (4) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +76 -2
  3. package/dist/cli.js +476 -0
  4. package/package.json +62 -4
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Rishav Raj
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,77 @@
1
- # Temporary Holding Version
1
+ # devfetch
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ A fast local overview of your developer environment, project, Git state, and
4
+ basic security hygiene. Built with Bun, runs on Node, and ships as a single CLI.
5
+
6
+ ## Install
7
+
8
+ ```bash
9
+ bun add -g devfetch
10
+ # or
11
+ npm install -g devfetch
12
+ ```
13
+
14
+ Run it without installing:
15
+
16
+ ```bash
17
+ bunx devfetch
18
+ # or
19
+ npx devfetch
20
+ ```
21
+
22
+ ## Usage
23
+
24
+ ```bash
25
+ devfetch # full dashboard
26
+ devfetch --minimal # one compact line
27
+ devfetch --json # machine-readable output
28
+ devfetch --no-ascii # hide the logo
29
+ devfetch --theme nord # default | dracula | nord (validation only for now)
30
+ devfetch --project # project info as JSON
31
+ devfetch --security # security info as JSON
32
+ ```
33
+
34
+ The full dashboard reports:
35
+
36
+ - **System** - OS, shell, terminal, uptime, CPU model, and memory usage.
37
+ - **Tools** - detected versions of Node, Bun, npm, pnpm, Yarn, Git, Docker,
38
+ Python, Go, and Rust. Missing tools are skipped.
39
+ - **Project** - name, framework, package manager, and dependency counts from
40
+ `package.json`.
41
+ - **Git** - branch, uncommitted file count, ahead/behind upstream, and last
42
+ commit.
43
+ - **Security** - presence of `.env` / `.env.example`, whether `.env` is Git
44
+ ignored, lockfile, pinned Node version, and a count of possible secrets.
45
+
46
+ ## Development
47
+
48
+ ```bash
49
+ bun install
50
+ bun run dev # bun run src/cli.ts
51
+ bun test
52
+ bun run build # dist/cli.js (runs on Node 18+)
53
+ node dist/cli.js
54
+ bun run compile # optional standalone devfetch executable
55
+ bun link # optional global link for local development
56
+ ```
57
+
58
+ ## Privacy
59
+
60
+ Everything runs locally. No data is uploaded and no network requests are made.
61
+ The security scan only reports filenames and generic categories (for example,
62
+ "possible API key"); it never prints or stores a matched secret value.
63
+
64
+ ## Limitations
65
+
66
+ - The secret scan is a heuristic over top-level text files only; it can produce
67
+ false positives and is not a replacement for a dedicated secret scanner.
68
+ - Ahead/behind counts require a configured Git upstream.
69
+ - On Windows, npm/pnpm/Yarn shims are launched through `cmd.exe` and allowed
70
+ four seconds because npm startup is slow there. Every other external command
71
+ has a two-second timeout; all checks run in parallel. These are upper bounds,
72
+ not delays - successful checks finish as soon as the command does.
73
+ - `--theme` currently validates the value but does not change colors.
74
+
75
+ ## License
76
+
77
+ MIT
package/dist/cli.js ADDED
@@ -0,0 +1,476 @@
1
+ #!/usr/bin/env node
2
+
3
+ // src/cli.ts
4
+ import { Command } from "commander";
5
+
6
+ // src/modules/system.ts
7
+ import os from "node:os";
8
+
9
+ // src/utils/run.ts
10
+ import { execFile } from "node:child_process";
11
+ import { promisify } from "node:util";
12
+ var execFileAsync = promisify(execFile);
13
+ async function run(command, args = [], timeoutMs = 1000, cwd) {
14
+ const { stdout } = await runWithStatus(command, args, timeoutMs, cwd);
15
+ return stdout.length > 0 ? stdout : null;
16
+ }
17
+ async function runWithStatus(command, args = [], timeoutMs = 1000, cwd) {
18
+ const [executable, execArgs] = resolveCommand(command, args);
19
+ try {
20
+ const { stdout } = await execFileAsync(executable, execArgs, {
21
+ cwd,
22
+ timeout: timeoutMs,
23
+ windowsHide: true,
24
+ maxBuffer: 1024 * 1024
25
+ });
26
+ return { stdout: stdout.trim(), exitCode: 0 };
27
+ } catch (error) {
28
+ return { stdout: "", exitCode: extractExitCode(error) };
29
+ }
30
+ }
31
+ function resolveCommand(command, args) {
32
+ const needsCmd = process.platform === "win32" && (/\.(cmd|bat)$/i.test(command) || ["npm", "npx", "pnpm", "yarn", "corepack"].includes(command.toLowerCase()));
33
+ if (!needsCmd)
34
+ return [command, args];
35
+ const commandLine = [command, ...args].map(quoteForCmd).join(" ");
36
+ return ["cmd.exe", ["/d", "/s", "/c", commandLine]];
37
+ }
38
+ function quoteForCmd(value) {
39
+ if (/^[\w./:@=+-]+$/.test(value))
40
+ return value;
41
+ return `"${value.replace(/"/g, '""')}"`;
42
+ }
43
+ function extractExitCode(error) {
44
+ if (typeof error !== "object" || error === null || !("code" in error)) {
45
+ return 1;
46
+ }
47
+ const code = error.code;
48
+ if (typeof code === "number" && Number.isFinite(code))
49
+ return code;
50
+ if (typeof code === "string") {
51
+ const parsed = Number(code);
52
+ if (Number.isFinite(parsed))
53
+ return parsed;
54
+ }
55
+ return 1;
56
+ }
57
+
58
+ // src/modules/system.ts
59
+ async function getSystemInfo() {
60
+ try {
61
+ const shell = await detectShell();
62
+ const totalMemory = os.totalmem() / 1024 ** 3;
63
+ const freeMemory = os.freemem() / 1024 ** 3;
64
+ const usedMemory = totalMemory - freeMemory;
65
+ const data = {
66
+ os: `${os.type()} ${os.release()}`,
67
+ kernel: os.release(),
68
+ shell,
69
+ terminal: process.env.TERM_PROGRAM ?? process.env.TERM ?? (process.platform === "win32" ? "console" : "unknown"),
70
+ uptime: formatUptime(os.uptime()),
71
+ cpu: detectCpu(),
72
+ memory: `${usedMemory.toFixed(1)} GB / ${totalMemory.toFixed(1)} GB`
73
+ };
74
+ return { available: true, data };
75
+ } catch (error) {
76
+ return {
77
+ available: false,
78
+ error: error instanceof Error ? error.message : "System detection failed"
79
+ };
80
+ }
81
+ }
82
+ async function detectShell() {
83
+ if (process.platform === "win32") {
84
+ const comSpec = process.env.ComSpec ?? "cmd.exe";
85
+ return comSpec.split(/[\\/]/).pop()?.replace(/\.exe$/i, "") ?? "cmd";
86
+ }
87
+ if (process.env.SHELL) {
88
+ return process.env.SHELL.split("/").pop() ?? process.env.SHELL;
89
+ }
90
+ const fromShell = await run("sh", ["-c", "echo $SHELL"]);
91
+ return fromShell?.split("/").pop() ?? "unknown";
92
+ }
93
+ function detectCpu() {
94
+ return os.cpus()[0]?.model?.trim() || "unknown";
95
+ }
96
+ function formatUptime(seconds) {
97
+ const hours = Math.floor(seconds / 3600);
98
+ const minutes = Math.floor(seconds % 3600 / 60);
99
+ return `${hours}h ${minutes}m`;
100
+ }
101
+
102
+ // src/modules/tools.ts
103
+ var tools = [
104
+ { name: "Node", command: "node", args: ["--version"] },
105
+ { name: "Bun", command: "bun", args: ["--version"] },
106
+ { name: "npm", command: "npm", args: ["--version"] },
107
+ { name: "pnpm", command: "pnpm", args: ["--version"] },
108
+ { name: "Yarn", command: "yarn", args: ["--version"] },
109
+ { name: "Git", command: "git", args: ["--version"] },
110
+ { name: "Docker", command: "docker", args: ["--version"] },
111
+ { name: "Python", command: "python3", args: ["--version"] },
112
+ { name: "Go", command: "go", args: ["version"] },
113
+ { name: "Rust", command: "rustc", args: ["--version"] }
114
+ ];
115
+ async function getTools() {
116
+ const results = await Promise.all(tools.map(detectTool));
117
+ return {
118
+ available: true,
119
+ data: results.filter((tool) => tool.version !== "")
120
+ };
121
+ }
122
+ async function detectTool(tool) {
123
+ const timeoutMs = ["npm", "pnpm", "yarn"].includes(tool.command) ? 4000 : 2000;
124
+ let output = await run(tool.command, [...tool.args], timeoutMs);
125
+ if (!output && tool.name === "Python") {
126
+ output = await run("python", ["--version"]);
127
+ }
128
+ return {
129
+ name: tool.name,
130
+ version: output ? cleanVersion(output) : ""
131
+ };
132
+ }
133
+ function cleanVersion(output) {
134
+ return (output.split(`
135
+ `)[0] ?? "").replace(/^v/, "").trim();
136
+ }
137
+
138
+ // src/modules/project.ts
139
+ import fs from "node:fs/promises";
140
+ import path from "node:path";
141
+ var frameworks = {
142
+ next: "Next.js",
143
+ react: "React",
144
+ vue: "Vue",
145
+ svelte: "Svelte",
146
+ express: "Express",
147
+ "@nestjs/core": "NestJS"
148
+ };
149
+ async function getProjectInfo(cwd = process.cwd()) {
150
+ try {
151
+ const raw = await fs.readFile(path.join(cwd, "package.json"), "utf8");
152
+ const pkg = JSON.parse(raw);
153
+ const dependencies = pkg.dependencies ?? {};
154
+ const devDependencies = pkg.devDependencies ?? {};
155
+ const allDependencies = { ...dependencies, ...devDependencies };
156
+ const framework = Object.keys(allDependencies).map((dependency) => frameworks[dependency]).find((value) => Boolean(value)) ?? "Unknown";
157
+ const packageManager = await detectPackageManager(cwd);
158
+ const data = {
159
+ name: pkg.name ?? path.basename(cwd),
160
+ packageManager,
161
+ framework,
162
+ dependencies: Object.keys(dependencies).length,
163
+ devDependencies: Object.keys(devDependencies).length
164
+ };
165
+ return { available: true, data };
166
+ } catch {
167
+ return { available: false, error: "No project detected" };
168
+ }
169
+ }
170
+ async function detectPackageManager(cwd) {
171
+ const lockfiles = [
172
+ { file: "bun.lock", manager: "Bun" },
173
+ { file: "pnpm-lock.yaml", manager: "pnpm" },
174
+ { file: "yarn.lock", manager: "Yarn" },
175
+ { file: "package-lock.json", manager: "npm" }
176
+ ];
177
+ for (const lockfile of lockfiles) {
178
+ try {
179
+ await fs.access(path.join(cwd, lockfile.file));
180
+ return lockfile.manager;
181
+ } catch {
182
+ continue;
183
+ }
184
+ }
185
+ return "Unknown";
186
+ }
187
+
188
+ // src/modules/git.ts
189
+ async function getGitInfo(cwd = process.cwd()) {
190
+ const insideRepo = await run("git", ["rev-parse", "--is-inside-work-tree"], 500, cwd);
191
+ if (insideRepo !== "true") {
192
+ return { available: false, error: "Not a Git repository" };
193
+ }
194
+ const [branch, status, upstream, lastCommit] = await Promise.all([
195
+ run("git", ["branch", "--show-current"], 1000, cwd),
196
+ run("git", ["status", "--porcelain"], 1000, cwd),
197
+ run("git", ["rev-list", "--left-right", "--count", "@{upstream}...HEAD"], 1000, cwd),
198
+ run("git", ["log", "-1", "--pretty=%s|%cr"], 1000, cwd)
199
+ ]);
200
+ const dirtyFiles = status ? status.split(`
201
+ `).filter(Boolean).length : 0;
202
+ const [behind = "0", ahead = "0"] = upstream?.split(/\s+/) ?? [];
203
+ const [message = "", time = ""] = lastCommit?.split("|") ?? [];
204
+ const data = {
205
+ branch: branch || "detached HEAD",
206
+ dirtyFiles,
207
+ ahead: toCount(ahead),
208
+ behind: toCount(behind),
209
+ lastCommit: message,
210
+ lastCommitTime: time
211
+ };
212
+ return { available: true, data };
213
+ }
214
+ function toCount(value) {
215
+ const parsed = Number(value);
216
+ return Number.isFinite(parsed) ? parsed : 0;
217
+ }
218
+
219
+ // src/modules/security.ts
220
+ import fs2 from "node:fs/promises";
221
+ import path2 from "node:path";
222
+ var secretPatterns = [
223
+ {
224
+ label: "possible API key",
225
+ regex: /(?:api[_-]?key|apikey)\s*[:=]\s*['"]?[^\s'"]{8,}/i
226
+ },
227
+ {
228
+ label: "possible token",
229
+ regex: /(?:token|secret)\s*[:=]\s*['"]?[^\s'"]{8,}/i
230
+ },
231
+ {
232
+ label: "possible private key",
233
+ regex: /-----BEGIN (?:[A-Z ]+ )?PRIVATE KEY-----/
234
+ }
235
+ ];
236
+ var ignoredExtensions = [
237
+ ".png",
238
+ ".jpg",
239
+ ".jpeg",
240
+ ".gif",
241
+ ".svg",
242
+ ".ico",
243
+ ".lock",
244
+ ".json",
245
+ ".md",
246
+ ".txt"
247
+ ];
248
+ async function getSecurityInfo(cwd = process.cwd()) {
249
+ const [envFile, envExample, envIgnored, lockfile] = await Promise.all([
250
+ fileExists(path2.join(cwd, ".env")),
251
+ fileExists(path2.join(cwd, ".env.example")),
252
+ isGitIgnored(cwd, ".env"),
253
+ detectLockfile(cwd)
254
+ ]);
255
+ const matches = await scanForPossibleSecrets(cwd);
256
+ const nodeVersionPinned = await hasPinnedNodeVersion(cwd);
257
+ const data = {
258
+ envFile,
259
+ envExample,
260
+ envIgnored,
261
+ lockfile,
262
+ possibleSecrets: matches.length,
263
+ secretFiles: [...new Set(matches.map((match) => match.file))],
264
+ nodeVersionPinned
265
+ };
266
+ return { available: true, data };
267
+ }
268
+ async function fileExists(filePath) {
269
+ try {
270
+ await fs2.access(filePath);
271
+ return true;
272
+ } catch {
273
+ return false;
274
+ }
275
+ }
276
+ async function isGitIgnored(cwd, filePath) {
277
+ const { exitCode } = await runWithStatus("git", ["check-ignore", "-q", filePath], 500, cwd);
278
+ if (exitCode === 0)
279
+ return true;
280
+ if (exitCode === 1)
281
+ return false;
282
+ return "unknown";
283
+ }
284
+ async function detectLockfile(cwd) {
285
+ const files = [
286
+ ["bun.lock", "Bun"],
287
+ ["pnpm-lock.yaml", "pnpm"],
288
+ ["yarn.lock", "Yarn"],
289
+ ["package-lock.json", "npm"]
290
+ ];
291
+ for (const [file, manager] of files) {
292
+ if (await fileExists(path2.join(cwd, file))) {
293
+ return manager;
294
+ }
295
+ }
296
+ return "None";
297
+ }
298
+ async function hasPinnedNodeVersion(cwd) {
299
+ try {
300
+ const pkg = JSON.parse(await fs2.readFile(path2.join(cwd, "package.json"), "utf8"));
301
+ const version = pkg.engines?.node;
302
+ return typeof version === "string" && version.trim().length > 0;
303
+ } catch {
304
+ return false;
305
+ }
306
+ }
307
+ async function scanForPossibleSecrets(cwd) {
308
+ const entries = await fs2.readdir(cwd, { withFileTypes: true });
309
+ const matches = [];
310
+ for (const entry of entries) {
311
+ if (!entry.isFile())
312
+ continue;
313
+ if (entry.name.startsWith("node_modules"))
314
+ continue;
315
+ if (ignoredExtensions.some((extension) => entry.name.endsWith(extension))) {
316
+ continue;
317
+ }
318
+ const filePath = path2.join(cwd, entry.name);
319
+ try {
320
+ const content = await fs2.readFile(filePath, "utf8");
321
+ for (const pattern of secretPatterns) {
322
+ if (pattern.regex.test(content)) {
323
+ matches.push({ file: entry.name, label: pattern.label });
324
+ break;
325
+ }
326
+ }
327
+ } catch {
328
+ continue;
329
+ }
330
+ }
331
+ return matches;
332
+ }
333
+
334
+ // src/index.ts
335
+ async function collectData() {
336
+ const [system, tools, project, git, security] = await Promise.all([
337
+ getSystemInfo(),
338
+ getTools(),
339
+ getProjectInfo(),
340
+ getGitInfo(),
341
+ getSecurityInfo()
342
+ ]);
343
+ return { system, tools, project, git, security };
344
+ }
345
+
346
+ // src/render/terminal.ts
347
+ import pc from "picocolors";
348
+ function renderTerminal(data, options) {
349
+ const lines = [];
350
+ if (options.ascii) {
351
+ lines.push(pc.cyan(" devfetch"));
352
+ lines.push("");
353
+ }
354
+ if (data.system.available && data.system.data) {
355
+ const system = data.system.data;
356
+ lines.push(pc.bold("System"));
357
+ lines.push(`OS: ${system.os}`);
358
+ lines.push(`Shell: ${system.shell}`);
359
+ lines.push(`Uptime: ${system.uptime}`);
360
+ lines.push(`CPU: ${system.cpu}`);
361
+ lines.push(`Memory: ${system.memory}`);
362
+ lines.push("");
363
+ }
364
+ if (data.tools.available && data.tools.data) {
365
+ lines.push(pc.bold("Tools"));
366
+ for (const tool of data.tools.data) {
367
+ lines.push(`${tool.name}: ${tool.version}`);
368
+ }
369
+ lines.push("");
370
+ }
371
+ if (data.project.available && data.project.data) {
372
+ const project = data.project.data;
373
+ lines.push(pc.bold("Project"));
374
+ lines.push(`Name: ${project.name}`);
375
+ lines.push(`Framework: ${project.framework}`);
376
+ lines.push(`Package manager: ${project.packageManager}`);
377
+ lines.push(`Dependencies: ${project.dependencies}`);
378
+ lines.push("");
379
+ } else {
380
+ lines.push(pc.dim("No project detected"));
381
+ lines.push("");
382
+ }
383
+ if (data.git.available && data.git.data) {
384
+ const git = data.git.data;
385
+ lines.push(pc.bold("Git"));
386
+ lines.push(`Branch: ${git.branch}`);
387
+ lines.push(`Uncommitted files: ${git.dirtyFiles}`);
388
+ if (git.ahead || git.behind) {
389
+ lines.push(`Ahead/behind: ${git.ahead}/${git.behind}`);
390
+ }
391
+ lines.push(`Last commit: ${git.lastCommit} (${git.lastCommitTime})`);
392
+ lines.push("");
393
+ } else {
394
+ lines.push(pc.dim("Not a Git repository"));
395
+ lines.push("");
396
+ }
397
+ if (data.security.available && data.security.data) {
398
+ const security = data.security.data;
399
+ lines.push(pc.bold("Security"));
400
+ lines.push(`.env found: ${yesNo(security.envFile)}`);
401
+ lines.push(`.env.example found: ${yesNo(security.envExample)}`);
402
+ lines.push(`.env ignored by Git: ${formatIgnore(security.envIgnored)}`);
403
+ lines.push(`Lockfile: ${security.lockfile}`);
404
+ lines.push(`Node version pinned: ${yesNo(security.nodeVersionPinned)}`);
405
+ lines.push(`Possible secrets detected: ${security.possibleSecrets}`);
406
+ if (security.possibleSecrets > 0) {
407
+ lines.push(`Files: ${security.secretFiles.join(", ")}`);
408
+ }
409
+ }
410
+ return lines.join(`
411
+ `);
412
+ }
413
+ function yesNo(value) {
414
+ return value ? "yes" : "no";
415
+ }
416
+ function formatIgnore(value) {
417
+ if (value === "unknown")
418
+ return "unknown";
419
+ return value ? "yes" : pc.yellow("no");
420
+ }
421
+
422
+ // src/render/json.ts
423
+ function renderJson(data) {
424
+ return JSON.stringify(data, null, 2);
425
+ }
426
+
427
+ // src/render/minimal.ts
428
+ function renderMinimal(data) {
429
+ const parts = [];
430
+ if (data.system.available && data.system.data) {
431
+ parts.push(`OS ${data.system.data.os}`);
432
+ }
433
+ if (data.project.available && data.project.data) {
434
+ parts.push(`${data.project.data.name} · ${data.project.data.framework} · ${data.project.data.packageManager}`);
435
+ }
436
+ if (data.git.available && data.git.data) {
437
+ parts.push(`${data.git.data.branch} · ${data.git.data.dirtyFiles} changed`);
438
+ }
439
+ if (data.security.available && data.security.data) {
440
+ parts.push(`security: ${data.security.data.possibleSecrets} possible secrets`);
441
+ }
442
+ return parts.join(" | ");
443
+ }
444
+
445
+ // src/cli.ts
446
+ var program = new Command;
447
+ program.name("devfetch").description("Fast local developer environment and project overview").version("0.1.0").option("--minimal", "Show compact output").option("--json", "Output machine-readable JSON").option("--no-ascii", "Hide ASCII art").option("--theme <theme>", "Select a color theme", "default").option("--project", "Show only project information").option("--security", "Show only security information").parse(process.argv);
448
+ var options = program.opts();
449
+ var data = await collectData();
450
+ if (options.json) {
451
+ console.log(renderJson(data));
452
+ process.exit(0);
453
+ }
454
+ if (options.minimal) {
455
+ console.log(renderMinimal(data));
456
+ process.exit(0);
457
+ }
458
+ if (options.project) {
459
+ console.log(data.project.available && data.project.data ? JSON.stringify(data.project.data, null, 2) : "No project detected");
460
+ process.exit(0);
461
+ }
462
+ if (options.security) {
463
+ console.log(data.security.available && data.security.data ? JSON.stringify(data.security.data, null, 2) : "Security information unavailable");
464
+ process.exit(0);
465
+ }
466
+ var validThemes = ["default", "dracula", "nord"];
467
+ var theme = options.theme ?? "default";
468
+ if (!validThemes.includes(theme)) {
469
+ console.error(`Invalid theme "${theme}".`);
470
+ console.error(`Available themes: ${validThemes.join(", ")}`);
471
+ process.exit(1);
472
+ }
473
+ console.log(renderTerminal(data, {
474
+ ascii: options.ascii !== false,
475
+ theme
476
+ }));
package/package.json CHANGED
@@ -1,6 +1,64 @@
1
1
  {
2
2
  "name": "devfetch",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0",
4
+ "description": "Fast, beautiful CLI overview of your developer environment, project, Git state, and local security hygiene.",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "author": "Rishav Raj <rishav5raj3@gmail.com>",
8
+ "homepage": "https://github.com/rishavvrajj/devfetch#readme",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/rishavvrajj/devfetch.git"
12
+ },
13
+ "bugs": {
14
+ "url": "https://github.com/rishavvrajj/devfetch/issues",
15
+ "email": "rishav5raj3@gmail.com"
16
+ },
17
+ "private": false,
18
+ "keywords": [
19
+ "cli",
20
+ "cli-tool",
21
+ "developer-tools",
22
+ "terminal",
23
+ "system-info",
24
+ "git",
25
+ "security",
26
+ "developer-experience",
27
+ "bun"
28
+ ],
29
+ "bin": {
30
+ "devfetch": "./dist/cli.js"
31
+ },
32
+ "files": [
33
+ "dist",
34
+ "README.md",
35
+ "LICENSE"
36
+ ],
37
+ "sideEffects": false,
38
+ "engines": {
39
+ "node": ">=18",
40
+ "bun": ">=1.0.0"
41
+ },
42
+ "publishConfig": {
43
+ "access": "public",
44
+ "registry": "https://registry.npmjs.org/"
45
+ },
46
+ "scripts": {
47
+ "dev": "bun run src/cli.ts",
48
+ "typecheck": "bun x tsc --noEmit",
49
+ "build": "bun build ./src/cli.ts --outdir ./dist --target node --external commander --external picocolors",
50
+ "compile": "bun build ./src/cli.ts --compile --outfile devfetch",
51
+ "test": "bun test",
52
+ "check": "bun run typecheck && bun run test && bun run build",
53
+ "prepublishOnly": "bun run build && bun run test"
54
+ },
55
+ "devDependencies": {
56
+ "@types/bun": "latest",
57
+ "@types/node": "^26.6.7",
58
+ "typescript": "^7.0.2"
59
+ },
60
+ "dependencies": {
61
+ "commander": "^15.1.0",
62
+ "picocolors": "^1.1.1"
63
+ }
64
+ }