@vltpkg/dep-id
A library for serializing dependencies into terse string identifiers, and turning those serialized identifiers back into Spec
objects.
Usage
Note
multiple different spec/manifest combinations can result
in the same identifier. For example, the specifiers
x@npm:y@latest
and asdf@npm:[email protected]
might both ultimately
resolve to the same package, so they only need to appear in the
store once.
BROWSER API
An isomorphic API @vltpkg/dep-id/browser
is provided for use in the browser.