5.2.1 • Published 8 years ago

gh-resolve v5.2.1

Weekly downloads
121
License
MIT
Repository
github
Last release
8 years ago

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/component@0.19.6', { 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)

5.2.1

8 years ago

5.1.1

9 years ago

5.1.0

9 years ago

5.0.1

9 years ago

5.0.0

9 years ago

4.0.0

9 years ago

3.1.0

9 years ago

3.0.4

10 years ago

3.0.3

10 years ago

3.0.2

10 years ago

3.0.1

10 years ago

3.0.0

10 years ago

2.0.2

10 years ago

2.0.1

10 years ago

2.0.0

10 years ago

1.1.2

10 years ago

1.1.1

10 years ago

1.1.0

10 years ago

1.0.0

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.1

10 years ago