go-versions

Get list of GO version tags

Usage no npm install needed!

<script type="module">
  import goVersions from 'https://cdn.skypack.dev/go-versions';
</script>

README

go-versions NPM version js-standard-style Dependency Status

Get list of GO version tags

local install

$ npm install --save go-versions

cli install

$ npm install --global go-versions

programmatic usage

const goVersions = require('go-versions')
goVersions().then(console.log).catch(console.error)

cli usage

$ go-versions
# 1.7.3
# 1.7.2
# ...

extra

The version list is pulled from github releases. For 90% of cases this needs no special handling or thought. However, for things like CI which rely on this module you may encounter problems due to rate limiting. To remedy that we will pass your (github auth token)[https://github.com/settings/tokens] if you have it set as an environment variable.

set GITHUB_OAUTH_TOKEN=mytoken

License

MIT © Andrew Carpenter