flux-scan 0.0.0-stage → 0.4.2

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 +17 -3
  2. package/bin.js +23 -0
  3. package/package.json +32 -6
package/README.md CHANGED
@@ -1,3 +1,17 @@
1
- # Temporary Holding Version
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.
1
+ # flux-scan
2
+
3
+ Unscoped alias for **[@fluxiapi/cli](https://www.npmjs.com/package/@fluxiapi/cli)** so you can run:
4
+
5
+ ```bash
6
+ npx flux-scan https://your-app.com -o report.html
7
+ ```
8
+
9
+ This package forwards every argument straight to `@fluxiapi/cli`. It exists
10
+ only so the short, unscoped command works. For full docs, options, and the
11
+ canonical package, see:
12
+
13
+ - **Repo:** https://github.com/aswinsasi/fluxapi
14
+ - **Canonical CLI:** `npx @fluxiapi/cli <url>`
15
+
16
+ FluxAPI scans your web app's network layer and reports API anti-patterns —
17
+ waterfalls, duplicate fetches, N+1 patterns, caching gaps, and more.
package/bin.js ADDED
@@ -0,0 +1,23 @@
1
+ #!/usr/bin/env node
2
+ // ═══════════════════════════════════════════════════════════════════
3
+ // flux-scan — unscoped alias for @fluxiapi/cli
4
+ //
5
+ // This package exists so `npx flux-scan <url>` works without the scope.
6
+ // It simply forwards to the real CLI in @fluxiapi/cli, which reads the
7
+ // same process.argv, so every flag and option behaves identically.
8
+ // ═══════════════════════════════════════════════════════════════════
9
+
10
+ 'use strict';
11
+
12
+ try {
13
+ // The real CLI runs main() on load, reading process.argv.slice(2).
14
+ // We keep argv untouched so all args/flags pass straight through.
15
+ require('@fluxiapi/cli/dist/cli.js');
16
+ } catch (err) {
17
+ console.error(' ❌ Could not load @fluxiapi/cli.');
18
+ console.error(' Try running the scoped package directly:');
19
+ console.error(' npx @fluxiapi/cli <url>');
20
+ console.error('');
21
+ console.error(String(err && err.message ? err.message : err));
22
+ process.exit(2);
23
+ }
package/package.json CHANGED
@@ -1,6 +1,32 @@
1
- {
2
- "name": "flux-scan",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
1
+ {
2
+ "name": "flux-scan",
3
+ "version": "0.4.2",
4
+ "description": "npx flux-scan — unscoped alias for @fluxiapi/cli. Scan any URL for API anti-patterns.",
5
+ "author": "Aswin <aswin@fluxapi.dev>",
6
+ "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/aswinsasi/fluxapi.git",
10
+ "directory": "packages/flux-scan"
11
+ },
12
+ "homepage": "https://fluxapi-phi.vercel.app",
13
+ "bin": {
14
+ "flux-scan": "./bin.js"
15
+ },
16
+ "scripts": {
17
+ "build": "node -e \"process.stdout.write('flux-scan: no build step\\n')\"",
18
+ "test": "node -e \"process.stdout.write('flux-scan: no tests\\n')\"",
19
+ "lint": "node -e \"process.stdout.write('flux-scan: no lint\\n')\""
20
+ },
21
+ "files": [
22
+ "bin.js",
23
+ "README.md"
24
+ ],
25
+ "dependencies": {
26
+ "@fluxiapi/cli": "^0.4.2"
27
+ },
28
+ "keywords": ["fluxapi", "api", "scanner", "cli", "performance", "flux-scan"],
29
+ "engines": {
30
+ "node": ">=18.0.0"
31
+ }
32
+ }