+1
-7
@@ -11,9 +11,3 @@ 'use strict'; | ||
| module.exports = function (filepath) { | ||
| var ext = path.extname(filepath).slice(1); | ||
| if (ext === '') { | ||
| return false; | ||
| } | ||
| return ext in exts; | ||
| return path.extname(filepath).slice(1).toLowerCase() in exts; | ||
| }; |
+1
-1
| { | ||
| "name": "is-archive", | ||
| "version": "1.0.0", | ||
| "version": "1.0.1", | ||
| "description": "Check if a filepath is an archive file", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
2735
-1.51%10
-28.57%1
Infinity%