upload-magic 0.0.0-stage → 0.0.1
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/README.md +14 -2
- package/index.js +5 -0
- package/package.json +7 -4
package/README.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
-
#
|
|
1
|
+
# UploadMagic
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
> Know what you're really accepting.
|
|
4
|
+
|
|
5
|
+
**Work in progress.** This version (0.0.1) is a placeholder and does nothing yet.
|
|
6
|
+
|
|
7
|
+
UploadMagic will check uploaded files in one call:
|
|
8
|
+
|
|
9
|
+
- Detect a file's real type from its magic bytes
|
|
10
|
+
- Flag mismatches between the real type, the file extension and the declared MIME type
|
|
11
|
+
- Enforce per-endpoint allowlists
|
|
12
|
+
- Find dangerous content such as SVGs with scripts, disguised HTML and executables
|
|
13
|
+
- Zero dependencies, works in Node, browsers, Deno, Bun and edge runtimes
|
|
14
|
+
|
|
15
|
+
The first real release will be 0.1.0.
|
package/index.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "upload-magic",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Know what you're really accepting. Detect spoofed, dangerous and mismatched file uploads in one call. (Work in progress, not ready for use yet.)",
|
|
5
|
+
"keywords": ["upload", "file-type", "magic-bytes", "validation", "security", "mime"],
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"main": "index.js",
|
|
8
|
+
"files": ["index.js", "README.md"]
|
|
9
|
+
}
|