![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Trace the dependency graph of a javascript file using detective and resolve.
var subdeps = require('../');
var deps = subdeps.sync(__dirname + '/tree/start.js');
console.dir(deps);
output:
substack : node-subdeps $ node example/tree.js
[ '/home/substack/projects/node-subdeps/example/tree/start.js',
'/home/substack/projects/node-subdeps/node_modules/detective/index.js',
'/home/substack/projects/node-subdeps/node_modules/detective/node_modules/burrito/index.js',
'/home/substack/projects/node-subdeps/node_modules/detective/node_modules/burrito/node_modules/uglify-js/uglify-js.js',
'/home/substack/projects/node-subdeps/node_modules/detective/node_modules/burrito/node_modules/uglify-js/lib/parse-js.js',
'/home/substack/projects/node-subdeps/node_modules/detective/node_modules/burrito/node_modules/uglify-js/lib/process.js',
'/home/substack/projects/node-subdeps/node_modules/detective/node_modules/burrito/node_modules/uglify-js/lib/squeeze-more.js',
'/home/substack/projects/node-subdeps/node_modules/detective/node_modules/burrito/node_modules/traverse/index.js',
'/home/substack/projects/node-subdeps/example/tree/lib/util.js',
'/home/substack/projects/node-subdeps/example/tree/x.js' ]
substack : node-subdeps $
var subdeps = require('../');
var deps = subdeps.sync('/a.js', { sources : {
'/a.js' : "var b = require('./b');",
'/b.js' : "var c = require('f')",
'/c.js' : "var d = require('./lib/d.js')",
'/lib/d.js' : "var e = require('e');",
'/node_modules/e/index.js' : '55',
'/node_modules/f/beep.js' : '"boop"',
'/node_modules/f/package.json' : JSON.stringify({ main : "beep.js" })
} });
console.dir(deps);
output:
[ '/a.js', '/b.js', '/node_modules/f/beep.js' ]
var subdeps = require('subdeps');
Return an array of dependencies starting from the file filename
and expanding
out recursively and synchronously.
Overload resolve's normal behavior with:
If you have an object mapping filenames to string contents, pass it in as
opts.sources
and the file will be used for dependency analysis entirely
in-memory.
With npm do:
npm install subdeps
and for the CLI tool do:
npm install -g subdeps
MIT/X11
FAQs
trace the dependency graph of a javascript file
The npm package subdeps receives a total of 0 weekly downloads. As such, subdeps popularity was classified as not popular.
We found that subdeps demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.