afterpack 0.0.1 → 0.0.10
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.
- package/dist/cli.js +41 -6
- package/dist/cli.js.map +1 -1
- package/package.json +16 -5
- package/readme.md +8 -9
package/dist/cli.js
CHANGED
|
@@ -1,11 +1,46 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import { version } from "@afterpack/core";
|
|
3
|
+
|
|
2
4
|
//#region src/cli.ts
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
console.log(
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
const args = process.argv.slice(2);
|
|
6
|
+
if (args.includes("--version") || args.includes("-v")) {
|
|
7
|
+
console.log(`AfterPack v${version()}`);
|
|
8
|
+
process.exit(0);
|
|
9
|
+
}
|
|
10
|
+
if (args[0] === "audit") {
|
|
11
|
+
console.log(`
|
|
12
|
+
╔═══════════════════════════════════════════════════════╗
|
|
13
|
+
║ AfterPack v${version().padEnd(42)}║
|
|
14
|
+
╚═══════════════════════════════════════════════════════╝
|
|
15
|
+
|
|
16
|
+
Audit command coming soon!
|
|
17
|
+
|
|
18
|
+
This will analyze your site and reveal what AI can
|
|
19
|
+
extract from your client-side JavaScript.
|
|
20
|
+
|
|
21
|
+
┌─────────────────────────────────────────────────────┐
|
|
22
|
+
│ Join the waitlist to get notified: │
|
|
23
|
+
│ https://www.afterpack.dev │
|
|
24
|
+
└─────────────────────────────────────────────────────┘
|
|
25
|
+
`);
|
|
26
|
+
process.exit(0);
|
|
27
|
+
}
|
|
28
|
+
console.log(`
|
|
29
|
+
╔═══════════════════════════════════════════════════════╗
|
|
30
|
+
║ AfterPack v${version().padEnd(42)}║
|
|
31
|
+
╚═══════════════════════════════════════════════════════╝
|
|
32
|
+
|
|
33
|
+
Coming soon: High-performance JavaScript protection.
|
|
34
|
+
|
|
35
|
+
Secure your client-side logic from AI extraction,
|
|
36
|
+
reverse engineering, vulnerability scanning, and
|
|
37
|
+
automated scraping.
|
|
38
|
+
|
|
39
|
+
┌─────────────────────────────────────────────────────┐
|
|
40
|
+
│ Join the waitlist for early access: │
|
|
41
|
+
│ https://www.afterpack.dev │
|
|
42
|
+
└─────────────────────────────────────────────────────┘
|
|
43
|
+
`);
|
|
9
44
|
|
|
10
45
|
//#endregion
|
|
11
46
|
//# sourceMappingURL=cli.js.map
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","names":[],"sources":["../src/cli.ts"],"sourcesContent":["#!/usr/bin/env node\n\nconst
|
|
1
|
+
{"version":3,"file":"cli.js","names":[],"sources":["../src/cli.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { version } from \"@afterpack/core\";\n\nconst args = process.argv.slice(2);\n\n// Version flag\nif (args.includes(\"--version\") || args.includes(\"-v\")) {\n console.log(`AfterPack v${version()}`);\n process.exit(0);\n}\n\n// Audit command\nif (args[0] === \"audit\") {\n console.log(`\n ╔═══════════════════════════════════════════════════════╗\n ║ AfterPack v${version().padEnd(42)}║\n ╚═══════════════════════════════════════════════════════╝\n\n Audit command coming soon!\n\n This will analyze your site and reveal what AI can\n extract from your client-side JavaScript.\n\n ┌─────────────────────────────────────────────────────┐\n │ Join the waitlist to get notified: │\n │ https://www.afterpack.dev │\n └─────────────────────────────────────────────────────┘\n`);\n process.exit(0);\n}\n\n// Default: show main waitlist message\nconsole.log(`\n ╔═══════════════════════════════════════════════════════╗\n ║ AfterPack v${version().padEnd(42)}║\n ╚═══════════════════════════════════════════════════════╝\n\n Coming soon: High-performance JavaScript protection.\n\n Secure your client-side logic from AI extraction,\n reverse engineering, vulnerability scanning, and\n automated scraping.\n\n ┌─────────────────────────────────────────────────────┐\n │ Join the waitlist for early access: │\n │ https://www.afterpack.dev │\n └─────────────────────────────────────────────────────┘\n`);\n"],"mappings":";;;;AAIA,MAAM,OAAO,QAAQ,KAAK,MAAM,EAAE;AAGlC,IAAI,KAAK,SAAS,YAAY,IAAI,KAAK,SAAS,KAAK,EAAE;AACrD,SAAQ,KAAK,aAAa,SAAS,CAAC,EAAE;AACtC,SAAQ,KAAK,EAAE;AAChB;AAGD,IAAI,KAAK,OAAO,SAAS;AACvB,SAAQ,KAAK;;kBAEG,SAAS,CAAC,OAAO,GAAG,CAAC;;;;;;;;;;;;EAYrC;AACA,SAAQ,KAAK,EAAE;AAChB;AAGD,QAAQ,KAAK;;kBAEK,SAAS,CAAC,OAAO,GAAG,CAAC;;;;;;;;;;;;;EAarC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "afterpack",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"description": "A high-performance post-build JavaScript obfuscator and minifier",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/cli.js",
|
|
@@ -13,27 +13,38 @@
|
|
|
13
13
|
"scripts": {
|
|
14
14
|
"build": "tsdown src/cli.ts --format esm --dts",
|
|
15
15
|
"dev": "tsdown src/cli.ts --format esm --watch",
|
|
16
|
-
"
|
|
16
|
+
"test": "vitest run",
|
|
17
|
+
"test:watch": "vitest",
|
|
18
|
+
"prepublishOnly": "pnpm build"
|
|
17
19
|
},
|
|
18
20
|
"keywords": [
|
|
19
21
|
"obfuscator",
|
|
20
22
|
"minifier",
|
|
21
23
|
"javascript",
|
|
22
24
|
"protection",
|
|
23
|
-
"security"
|
|
25
|
+
"security",
|
|
26
|
+
"afterpack"
|
|
24
27
|
],
|
|
25
|
-
"author": "AfterPack",
|
|
28
|
+
"author": "AfterPack <hello@afterpack.dev>",
|
|
26
29
|
"license": "MIT",
|
|
27
30
|
"repository": {
|
|
28
31
|
"type": "git",
|
|
29
32
|
"url": "https://github.com/afterpack-dev/afterpack.git"
|
|
30
33
|
},
|
|
31
34
|
"homepage": "https://afterpack.dev",
|
|
35
|
+
"bugs": {
|
|
36
|
+
"url": "https://github.com/afterpack-dev/afterpack/issues"
|
|
37
|
+
},
|
|
32
38
|
"engines": {
|
|
33
39
|
"node": ">=18"
|
|
34
40
|
},
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"@afterpack/core": "^0.0.9"
|
|
43
|
+
},
|
|
35
44
|
"devDependencies": {
|
|
45
|
+
"@types/node": "^25.0.9",
|
|
36
46
|
"tsdown": "^0.11.0",
|
|
37
|
-
"typescript": "^5.0.0"
|
|
47
|
+
"typescript": "^5.0.0",
|
|
48
|
+
"vitest": "^2.0.0"
|
|
38
49
|
}
|
|
39
50
|
}
|
package/readme.md
CHANGED
|
@@ -12,15 +12,14 @@ npx afterpack
|
|
|
12
12
|
|
|
13
13
|
## Features
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
-
|
|
18
|
-
-
|
|
19
|
-
-
|
|
20
|
-
-
|
|
21
|
-
-
|
|
22
|
-
-
|
|
23
|
-
- And many more
|
|
15
|
+
- **Free & Production-Ready** — Full obfuscation at no cost. Pro unlocks multi-file and edge features
|
|
16
|
+
- **20-70x Faster** — Rust-powered engine leaves JavaScript-based tools in the dust
|
|
17
|
+
- **Irreversible** — Non-linear transforms that can't be undone by deobfuscators or AI
|
|
18
|
+
- **Any Complexity** — From minimal to extreme protection with `--inflate`
|
|
19
|
+
- **Deterministic** — Same input = same output. Works with Turborepo, Nx, Bazel
|
|
20
|
+
- **Source Maps** — Generate and chain for Sentry/Datadog error tracking
|
|
21
|
+
- **Framework Presets** — Safe defaults for Next.js, Vite, Astro
|
|
22
|
+
- **Dual Runtime** — Native bindings + WASM for edge deployment
|
|
24
23
|
|
|
25
24
|
## License
|
|
26
25
|
|