# @haad/go-ipfs-dep

> Install the latest go-ipfs binary

Latest version **0.4.5-beta.11** (published 2017-02-13) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @haad/go-ipfs-dep
pnpm add @haad/go-ipfs-dep
yarn add @haad/go-ipfs-dep
bun add @haad/go-ipfs-dep
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.4.5-beta.11 |
| Published | 2017-02-13 |
| First published | 2016-11-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | yes |
| GitHub stars | 16 |
| Author | Juan Benet |
| Maintainers | haad |
| Keywords | ipfs, install |

## Links

- npm: https://www.npmjs.com/package/@haad/go-ipfs-dep
- Repository: https://github.com/diasdavid/go-ipfs-dep
- Issues: https://github.com/diasdavid/go-ipfs-dep/issues
- npm.io page: https://npm.io/package/@haad/go-ipfs-dep

## Dependencies (6)

- [unzip](https://npm.io/package/unzip.md) ^0.1.11
- [tar-fs](https://npm.io/package/tar-fs.md) ^1.13.2
- [request](https://npm.io/package/request.md) ^2.75.0
- [go-platform](https://npm.io/package/go-platform.md) ^1.0.0
- [gunzip-maybe](https://npm.io/package/gunzip-maybe.md) ^1.3.1
- [browserify-zlib-next](https://npm.io/package/browserify-zlib-next.md) ^1.0.0

## Recent versions

- 0.4.5-beta.11 (latest) — 2017-02-13
- 0.4.5-beta.10 — 2017-02-08
- 0.4.5-beta.9 — 2017-02-04
- 0.4.5-beta.8 — 2017-01-21
- 0.4.5-beta.7 — 2017-01-19
- 0.4.5-beta.5 — 2016-11-29
- 0.4.5-beta.4 — 2016-11-28
- 0.4.5-beta.3 — 2016-11-27
- 0.4.5-beta.2 — 2016-11-25
- 0.4.5-beta.1 — 2016-11-25
- 0.4.5-pre2 — 2016-11-25
- 0.4.5-pre1 — 2016-11-25
- 0.4.5-rc1 — 2016-11-24

## README

Install go-ipfs from npm as a dependency of your project
========================================================


[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://ipn.io)
[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)
[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)
[![Dependency Status](https://david-dm.org/ipfs/npm-go-ipfs.svg?style=flat-square)](https://david-dm.org/ipfs/npm-go-ipfs)

> Install the latest [go-ipfs](https://github.com/ipfs/go-ipfs/) binary from [http://dist.ipfs.io](http://dist.ipfs.io)

# Installation

```
npm install go-ipfs --save
```

See [IPFS getting-started](http://ipfs.io/docs/getting-started). If anything goes wrong, try using: [http://ipfs.io/docs/install](http://ipfs.io/docs/install).

## Development

**Warning**: The binary gets put in the `go-ipfs` folder inside the module folder.

### Which go-ipfs version this package downloads?

Can be specified in `package.json` with a field `go-ipfs.version`, eg:

```json
"go-ipfs": {
  "version": "v0.4.5-pre1"
},
```

### Using local IPFS daemon as the package download url
Can be specified in `package.json` with a field `go-ipfs.version`, eg:

```json
"go-ipfs": {
  "version": "v0.4.5-pre1",
  "distUrl": "http://localhost:8080/ipfs/QmSoNtqW22htkg9mtHWNBvZLUEmqfq8su7957meS1iQfeL"
},
```

Where `QmSoNtqW22htkg9mtHWNBvZLUEmqfq8su7957meS1iQfeL` is the root of the distributions web site.

Or when run with `node src/bin.js`, the dist url can be passed via an environment variable `GO_IPFS_DIST_URL`, eg:

```
GO_IPFS_DIST_URL=http://localhost:8080/ipfs/QmSoNtqW22htkg9mtHWNBvZLUEmqfq8su7957meS1iQfeL node binsrc/bin.js
```

### Arguments

When used via `node src/bin.js`, you can specify the target platform, version and architecture via environment variables:

`TARGET_OS`

See: [Supported Platforms](https://github.com/haadcode/go-ipfs-dep/blob/master/src/supported-platforms.js) for possible values.

`TARGET_VERSION`

See: [Supported Versions](https://github.com/haadcode/go-ipfs-dep/blob/master/src/supported-versions.js) for possible values.

`TARGET_ARCH`

See: [Supported Architectures](https://github.com/haadcode/go-ipfs-dep/blob/master/src/checkPlatform.js#L4) for possible values.

Or via command line arguments in the order of: 
```
node src/bin.js <version> <platform> <architecture> <install directory>
```

```
node src/bin.js v0.4.5-pre1 linux amd64 ./go-ipfs
```

### API

For programmatic usage, see https://github.com/haadcode/go-ipfs-dep/blob/master/src/index.js#L18

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