@redcenterstudio/deno-audit 0.0.0-stage → 1.0.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.
- package/LICENSE +21 -0
- package/README.md +61 -2
- package/dist/bin.js +1419 -0
- package/package.json +39 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Red Center Studio
|
|
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,62 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @redcenterstudio/deno-audit
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A free, MIT-licensed command line scan that tells you how ready a Deno Deploy project is to move to Cloudflare Workers. It reads your project folder on your own machine and prints a report. Your code is never uploaded.
|
|
4
|
+
|
|
5
|
+
Deno Deploy (classic) is scheduled to sunset in April 2027. This tool helps you see what stands between your app and a Workers deploy before you plan the move.
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
npx @redcenterstudio/deno-audit <dir>
|
|
11
|
+
npx @redcenterstudio/deno-audit <dir> --json
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Use `.` for the current folder. Node 20 or newer is required. `--json` prints the same findings as JSON (the readiness score is marked with `scoreIsStaticEstimate: true`).
|
|
15
|
+
|
|
16
|
+
## What it checks
|
|
17
|
+
|
|
18
|
+
- Deno APIs that Workers does not provide: `Deno.serve`, `Deno.env`, file system calls, top-level mutable state that is lost between isolates.
|
|
19
|
+
- Oak routers and middleware, and how many routes it finds.
|
|
20
|
+
- `Deno.cron` schedules.
|
|
21
|
+
- Deno KV usage: `openKv`, `atomic`, versionstamps, `expireIn`, `KvU64`, `list`. It rates the consistency risk and says whether Workers KV is enough or SQLite Durable Objects are needed.
|
|
22
|
+
- Fresh projects, which are flagged as not supported by the automatic path.
|
|
23
|
+
- A readiness score from 0 to 100, a line-by-line findings table, and the files a migration would leave out (tests, tooling scripts, editor and CI settings).
|
|
24
|
+
- A rough monthly infrastructure cost comparison.
|
|
25
|
+
|
|
26
|
+
## Sample output
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
RED CENTER STUDIO: DENO DEPLOY & DENO.OPENKV() MIGRATION AUDIT
|
|
30
|
+
------------------------------------------------------------------------
|
|
31
|
+
Project : kv-atomic-booking
|
|
32
|
+
Readiness Score : 68/100 (static estimate, nothing was converted)
|
|
33
|
+
Recommended Tier : PRO (1 detected routes)
|
|
34
|
+
KV Risk Level : CRITICAL -> Target: durable_objects_sqlite
|
|
35
|
+
------------------------------------------------------------------------
|
|
36
|
+
KV & CONSISTENCY AUDIT:
|
|
37
|
+
openKv=3 atomic=1 versionstamp=3 expireIn=1 KvU64=2 list=1
|
|
38
|
+
|
|
39
|
+
LINE-BY-LINE FINDINGS (10):
|
|
40
|
+
SEVERITY LOCATION SYMBOL AUTO
|
|
41
|
+
CRITICAL lib/bookings.ts:27:21 kv.atomic() YES
|
|
42
|
+
WARNING main.ts:3:7 recentBookingsCache REVIEW
|
|
43
|
+
...
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## What it does not do
|
|
47
|
+
|
|
48
|
+
- It does not convert your code. The score is a static estimate from a local scan: no conversion is run and no build is checked.
|
|
49
|
+
- It does not move your Deno KV data, create Cloudflare resources, or open pull requests.
|
|
50
|
+
- It does not send anything over the network.
|
|
51
|
+
|
|
52
|
+
## Next step
|
|
53
|
+
|
|
54
|
+
For a free diff preview of the converted code and the paid migration (code conversion, KV on Durable Objects, GitHub pull request), use the hosted migrator: https://deno.redcenterstudio.com
|
|
55
|
+
|
|
56
|
+
Product page: https://redcenterstudio.com/products/deno-migrator/
|
|
57
|
+
|
|
58
|
+
Guide: https://redcenterstudio.com/blog/move-deno-deploy-app-to-cloudflare-workers/
|
|
59
|
+
|
|
60
|
+
## License
|
|
61
|
+
|
|
62
|
+
MIT. Copyright (c) 2026 Red Center Studio.
|