mime-detect
Advanced tools
Comparing version 0.0.0 to 1.0.0
{ | ||
"name": "mime-detect", | ||
"version": "0.0.0", | ||
"description": "", | ||
"version": "1.0.0", | ||
"description": "A meta package to detect mime type and encoding (aka Content-Type) from buffer, file content and filename.", | ||
"keywords": [ | ||
"mime", | ||
"content-type", | ||
"encoding", | ||
"mime-type", | ||
"format detect", | ||
"magic number", | ||
"typescript" | ||
], | ||
"author": { | ||
"name": "Beeno Tung", | ||
"email": "aabbcc1241@yahoo.com.hk", | ||
"url": "https://beeno-tung.surge.sh" | ||
}, | ||
"license": "BSD-2-Clause", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/beenotung/mime-detect.git" | ||
}, | ||
"homepage": "https://github.com/beenotung/mime-detect#readme", | ||
"bugs": { | ||
"url": "https://github.com/beenotung/mime-detect/issues" | ||
}, | ||
"main": "index.js", | ||
"types": "index.d.ts", | ||
"files": [ | ||
"index.js", | ||
"index.d.ts" | ||
], | ||
"scripts": { | ||
"dev": "tsc --watch", | ||
"test": "tsc --noEmit", | ||
"build": "tsc -p ." | ||
}, | ||
"file":[], | ||
"keywords": [], | ||
"author": "", | ||
"license": "ISC" | ||
"dependencies": { | ||
"mime-db": "^1.52.0", | ||
"mime-type": "^4.0.0" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^17.0.23", | ||
"ts-node": "^10.7.0", | ||
"ts-node-dev": "^1.1.8", | ||
"typescript": "^4.6.3" | ||
} | ||
} |
# mime-detect | ||
A meta package to detect mime type and encoding (aka Content-Type) from buffer, file content and filename. | ||
Detect mime type and encoding (aka Content-Type) from buffer, file content and filename. | ||
@@ -9,5 +9,14 @@ [](https://www.npmjs.com/package/mime-detect) | ||
- [file-type](https://www.npmjs.com/package/file-type) | ||
- [mime-type](https://www.npmjs.com/package/mime-type) | ||
- [is-svg](https://www.npmjs.com/package/is-svg) | ||
- [file](https://man7.org/linux/man-pages/man1/file.1.html) (Inspired by [mimetype-magic](https://www.npmjs.com/package/mimetype-magic)) | ||
- [mime-type](https://www.npmjs.com/package/mime-type) and [mime-db](https://www.npmjs.com/package/mime-db) | ||
## License | ||
This project is licensed with [BSD-2-Clause](./LICENSE) | ||
This is free, libre, and open-source software. It comes down to four essential freedoms [[ref]](https://seirdy.one/2021/01/27/whatsapp-and-the-domestication-of-users.html#fnref:2): | ||
- The freedom to run the program as you wish, for any purpose | ||
- The freedom to study how the program works, and change it so it does your computing as you wish | ||
- The freedom to redistribute copies so you can help others | ||
- The freedom to distribute copies of your modified versions to others |
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
6757
5
82
0
0
22
0
2
4
+ Addedmime-db@^1.52.0
+ Addedmime-type@^4.0.0
+ Addedbraces@3.0.3(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedfill-range@7.1.1(transitive)
+ Addedinherits-ex@1.6.0(transitive)
+ Addedis-number@7.0.0(transitive)
+ Addedmicromatch@4.0.8(transitive)
+ Addedmime-db@1.53.0(transitive)
+ Addedmime-type@4.0.0(transitive)
+ Addedpath.js@1.0.7(transitive)
+ Addedpicomatch@2.3.1(transitive)
+ Addedto-regex-range@5.0.1(transitive)
+ Addedutil-ex@0.3.18(transitive)
+ Addedxtend@4.0.2(transitive)