# go-bin

> Get Go binaries by version tag

Latest version **1.4.0** (published 2020-04-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install go-bin
pnpm add go-bin
yarn add go-bin
bun add go-bin
```

Provides the command `go-bin`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.4.0 |
| Published | 2020-04-15 |
| First published | 2016-11-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 5.6 KB |
| Known vulnerabilities | 0 (+3 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Andrew Carpenter |
| Maintainers | doesdev |
| Keywords | go, golang, download, binaries |

## Links

- npm: https://www.npmjs.com/package/go-bin
- Repository: https://github.com/doesdev/go-bin
- Homepage: https://github.com/doesdev/go-bin#readme
- Issues: https://github.com/doesdev/go-bin/issues
- npm.io page: https://npm.io/package/go-bin

## Dependencies (2)

- [mkdirp](https://npm.io/package/mkdirp.md) ^1.0.4
- [decompress](https://npm.io/package/decompress.md) ^4.2.1

## Alternatives

- [angular-pipes](https://npm.io/package/angular-pipes.md) — 5.6K weekly downloads
- [@ng-web-apis/midi](https://npm.io/package/@ng-web-apis/midi.md) — 2.6K weekly downloads
- [happn-3](https://npm.io/package/happn-3.md) — 1.6K weekly downloads
- [@opensip-cli/lang-go](https://npm.io/package/@opensip-cli/lang-go.md) — 1.2K weekly downloads
- [mongoose-typescript](https://npm.io/package/mongoose-typescript.md) — 85 weekly downloads

## Recent versions

- 1.4.0 (latest) — 2020-04-15
- 1.3.0 — 2019-06-07
- 1.2.2 — 2018-10-09
- 1.2.1 — 2018-08-10
- 1.2.0 — 2018-03-21
- 1.1.0 — 2017-05-29
- 1.0.0 — 2016-11-25

## 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)

---
_Source: https://npm.io/package/go-bin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
