Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@haad/go-ipfs-dep

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@haad/go-ipfs-dep

Install the latest go-ipfs binary

  • 0.4.5-beta.11
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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

Dependency Status

Install the latest go-ipfs binary from http://dist.ipfs.io

Installation

npm install go-ipfs --save

See IPFS getting-started. If anything goes wrong, try using: 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:

"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:

"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 for possible values.

TARGET_VERSION

See: Supported Versions for possible values.

TARGET_ARCH

See: Supported Architectures 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

Keywords

FAQs

Package last updated on 13 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc