go-ipfs-sidecar
v0.10.0
Published
## Install
Downloads
3
Readme
go-ipfs-sidecar
Install
> npm install -g go-ipfs-sidecar
> ipfs version
> npm install go-ipfs-sidecar
> ./node_modules/.bin/ipfs
Usage
path
import { path } from 'go-ipfs-sidecar'
path().then(ipfsPath => console.log('go-ipfs is installed at', ipfsPath))
pathSync
import { pathSync } from 'go-ipfs-sidecar'
console.log('go-ipfs is installed at', pathSync())
sidecarPath
import { sidecarPath } from 'go-ipfs-sidecar'
sidecarPath().then(ipfsPath => console.log('go-ipfs is installed at', ipfsPath))
sidecarPathSync
import { sidecarPathSync } from 'go-ipfs-sidecar'
console.log('go-ipfs is installed at', sidecarPathSync())
Caching
Downloaded archives are placed in OS-specific cache directory which can be customized by setting NPM_GO_IPFS_CACHE
in env.
Development
Warning: the file bin/ipfs
is a placeholder, when downloading stuff, it gets replaced. so if you run node install.js
it will then be dirty in the git repo. Do not commit this file, as then you would be commiting a big binary and publishing it to npm. A pre-commit hook exists and should protect against this, but better safe than sorry.
Contribute
Feel free to join in. All welcome. Open an issue!
Licenses
Copyright for portions of this project are held by [Protocol Labs, Inc., 2021] as part of npm-go-ipfs
.
All other copyright for this project are help by [Jonas Kruckenberg, 2021].