在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:ipfs/npm-go-ipfs开源软件地址:https://github.com/ipfs/npm-go-ipfs开源编程语言:JavaScript 100.0%开源软件介绍:npm-go-ipfs
Table of ContentsInstallInstall the latest go-ipfs binary: # Install globally
> npm install -g go-ipfs
> ipfs version
ipfs version v0.7.0
# Install locally
> npm install go-ipfs
> ./node_modules/.bin/ipfs
ipfs version v0.7.0 UsageThis module downloads It will download the go-ipfs version that matches the npm version of this module. So depending on After downloading you can find out the path of the installed binary by calling the const { path } = require('go-ipfs')
console.info('go-ipfs is installed at', path()) An error will be thrown if the path to the binary cannot be resolved. CachingDownloaded archives are placed in OS-specific cache directory which can be customized by setting DevelopmentWarning: the file Publish a new versionYou should be able to just run > ./publish.sh
usage ./publish.sh <version>
publish a version of go-ipfs to npm
> ./publish.sh 0.3.11 This will:
Open an issue in the repo if you run into trouble. Publish a new version of this module with exact same go-ipfs versionIf some problem happens, and you need to publish a new version of this module targetting the same go-ipfs version, then please follow this convention:
Well, if you previously published npm module
Because it is unlikely to be a legitimate go-ipfs version, and we want to support go-ipfs versions like
ContributeFeel free to join in. All welcome. Open an issue! This repository falls under the IPFS Code of Conduct. License |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论