Skip to content

Resolve version ranges in a dependency stream using an npm-compatible registry

Notifications You must be signed in to change notification settings

grncdr/resolve-package-versions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

resolve-package-versions

Synopsis

var resolvePackageVersions = require('resolve-package-versions')

var resolver = resolvePackageVersions();
var dependency = {
  name: 'request',
  versionRange: '2.x'
};

resolver.resolve(dependency, function (err) {
  console.log(dependency.version) //=> 2.21.0
})

// Or use as a through stream

var createDependencyStream = require('create-dependency-stream');
var dependencies = createDependencyStream('/path/to/package.json');
dependencies.pipe(resolver);

Description

This package uses a remote registry to determine the version of a package that will satisfy a requested version range.

License

MIT

About

Resolve version ranges in a dependency stream using an npm-compatible registry

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published