Skip to content

duojs/gh-resolve

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gh-resolve

npm package travis build status

Resolves a semver version, branch name or commit hash to git ref.

resolve(slug, options)

var ref = yield resolve('component/[email protected]', { token: token });

ref.name  // 0.19.6
ref.sha   // 6d6501d002aef91f1261f6ec98c6ed32046fe46a
ref.type  // tag

This method can be with either yield or a callback. (thanks to unyield)

Available options

  • token highly recommended, but not required.
  • password alias for token
  • cache a cache instance provided by duo

License

(MIT)

About

version / branch name to git (gh) ref.

Resources

Stars

Watchers

Forks

Packages

No packages published