JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 358
  • Score
    100M100P100Q87018F
  • License MIT

Get GO binaries by version tag

Package Exports

  • go-bin

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (go-bin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

go-bin NPM version js-standard-style

Get GO binaries by version tag

local install

$ npm install --save go-bin

cli install

$ npm install --global go-bin

api

returns promise which resolves to newly created GO directory

  • options (Object)
    • version - required
      • description: GO version tag
      • type: String
      • example: 1.7.3
    • dir - optional
      • description: Output path GO binaries will land in
      • type: String
      • example: C:\\GO (final path would be C:\\GO\\go-1.7.3)
      • default: __dirname + 'vendor'

programmatic usage

const goBin = require('go-bin')
goBin({version: '1.7.3', dir: '~/here'}).then(console.log).catch(console.error)

cli usage

$ go-bin -v 1.7.3 -d ~/here
# ~/here/go-1.7.3

License

MIT © Andrew Carpenter