Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/doesdev/go-bin
Get GO binaries by version tag
https://github.com/doesdev/go-bin
Last synced: 3 months ago
JSON representation
Get GO binaries by version tag
- Host: GitHub
- URL: https://github.com/doesdev/go-bin
- Owner: doesdev
- License: mit
- Created: 2016-11-25T23:02:56.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-04-15T12:18:41.000Z (about 4 years ago)
- Last Synced: 2024-02-28T03:22:38.649Z (4 months ago)
- Language: JavaScript
- Size: 61.5 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-stars - doesdev/go-bin - Get GO binaries by version tag (JavaScript)
README
# go-bin [![NPM version](https://badge.fury.io/js/go-bin.svg)](https://npmjs.org/package/go-bin) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard) [![Dependency Status](https://dependencyci.com/github/doesdev/go-bin/badge)](https://dependencyci.com/github/doesdev/go-bin) [![Build Status](https://travis-ci.org/doesdev/go-bin.svg)](https://travis-ci.org/doesdev/go-bin)
> Get Go binaries by version tag
## local install
```sh
$ npm install --save go-bin
```## cli install
```sh
$ npm install --global go-bin
```## api
returns promise which resolves to newly created Go directory
- **options** *(Object)*
- **includeTag** - *optional*
- description: Include subdirectory with `go-${version}`
- type: String
- default: true
- **version** - *required*
- description: Go version tag
- type: String
- example: `1.8.3`
- **dir** - *optional*
- description: Output path Go binaries will land in
- type: String
- example: `C:\\Go` (unless `includeTag = false` final path would be `C:\\Go\\go-1.8.3`)
- default: `__dirname + 'vendor'`## programmatic usage
```js
const goBin = require('go-bin')
goBin({version: '1.8.3', dir: '~/here'}).then(console.log).catch(console.error)
```## cli usage
```sh
$ go-bin -v 1.8.3 -d ~/here
# ~/here/go-1.8.3
```## related
- [ngo](https://github.com/doesdev/ngo) - Run Go commands,
whether your Go env is in place or not- [go-versions](https://github.com/doesdev/go-versions) - Get list of Go version
tags- [go-latest](https://github.com/doesdev/go-latest) - Get latest Go version tag
## license
MIT © [Andrew Carpenter](https://github.com/doesdev)