inspectdep 0.1.2
“A dependency inspection tool.”
Calls JavaScript readFile APIReads files with Node.js
SHA-25637455cd32823f70af1fcd14b66e1d67df10d0c80f45bb9fcb73020ae4d10f50a
MaleculeH₂(CmF)
Evidence
⋯5 lines
6
7const readFile = promisify(fs.readFile);
8const readJson = async (filePath) => JSON.parse(await readFile(filePath));
9const stat = promisify(fs.stat);
10const exists = (filePath) => stat(filePath)
⋯10 lines
23:2… // TODO(2): Handle not found and/or filter nulls.
24 // https://github.com/FormidableLabs/inspectdep/issues/2
25 // Potential information:
26 // - `const isOptional = !(pkg.dependencies || {})[name];`
⋯6 lines
38:54… .
39 const bin = typeof pkg.bin === "string" ? { [pkg.name]: pkg.bin } : pkg.bin || {};
40
41 // Check for binary at root path.
42 const bins = await Promise.all(Object.keys(bin)
43 // Check if normal a …
1{
2 "name": "inspectdep",
3 "version": "0.1.2",
4 "description": "A dependency inspection tool.",
5 "main": "index.js",
6 "repository": "https://github.com/FormidableLabs/inspectdep",
7 "author": "Ryan Roemer <[email protected]>",
8 "license": "MIT",
⋯14 lines
22:38… st-cov"
23 },
24 "engines": {
25 "node": ">=8.0.0"
26 },
27 "devDependencies": {
28 "babel-eslint": "^10.0.1",
29 "chai": "^4.2.0",
⋯7 lines
No evidence locations were recorded for this file. Raw result