Name: libnpm-resolve-module-tree
Owner: npm
Description: Given a set of dependencies return a fully realized logical tree using only the most recent package versions.
Created: 2018-01-06 00:36:09.0
Updated: 2018-01-06 00:40:01.0
Pushed: 2018-01-08 13:47:00.0
Homepage: null
Size: 20
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Given a set of dependencies return a fully realized logical tree using only the most recent package versions.
Optionally you may provide an existing tree and the nodes from that tree will be reused when they are available.
t resolvePackageTree = require('libnpm-resolve-package-tree')
t npa = require('npm-package-arg')
t pacote = require('pacote')
tion fetchManifest (name, ver) {
cote.manifest(npa.resolve(name, range))
lvePackageTree({'lru-cache': '^4.0.0'}, fetchManifest).then(newTree => {
tree.requires contains `lru-cache` and its dependencies