MCPcopy Create free account
hub / github.com/npm/cli / filterByPositionalArgs

Function filterByPositionalArgs

lib/commands/ls.js:459–462  ·  view source on GitHub ↗
(args, { node })

Source from the content-addressed store, hash-verified

457}
458
459const filterByPositionalArgs = (args, { node }) =>
460 args.length > 0 ? args.some(
461 (spec) => (node.satisfies && node.satisfies(spec))
462 ) : true
463
464const augmentNodesWithMetadata = ({
465 args,

Callers 1

augmentNodesWithMetadataFunction · 0.85

Calls 1

satisfiesMethod · 0.80

Tested by

no test coverage detected