{"name":"go-ipfs","version":"0.17.0","description":"Install the latest go-ipfs binary","main":"src/index.js","scripts":{"postinstall":"node src/post-install.js","restore-bin":"git reset -- bin/ipfs && git checkout -- bin/ipfs","test":"tape test/*.js | tap-spec","lint":"tsc --noEmit && standard","prepublishOnly":"tsc"},"pre-commit":"restore-bin","bin":{"ipfs":"bin/ipfs"},"repository":{"type":"git","url":"git+https://github.com/ipfs/npm-go-ipfs.git"},"keywords":["ipfs","install"],"author":{"name":"Protocol Labs, Inc."},"license":"MIT","bugs":{"url":"https://github.com/ipfs/npm-go-ipfs/issues"},"homepage":"https://github.com/ipfs/npm-go-ipfs","types":"./dist/src/types.d.ts","devDependencies":{"@types/got":"^9.6.12","@types/gunzip-maybe":"^1.4.0","@types/tar-fs":"^2.0.1","@types/unzip-stream":"^0.3.1","execa":"^4.0.1","fs-extra":"^9.0.0","pre-commit":"^1.2.2","standard":"^13.1.0","tap-spec":"^5.0.0","tape":"^4.13.2","tape-promise":"^4.0.0","typescript":"^4.3.5"},"dependencies":{"cachedir":"^2.3.0","got":"^11.7.0","gunzip-maybe":"^1.4.2","hasha":"^5.2.2","pkg-conf":"^3.1.0","tar-fs":"^2.1.0","unzip-stream":"^0.3.0"},"gitHead":"0ec8a938caa016457139d91b777ee9625c4d135c","_id":"go-ipfs@0.17.0","_nodeVersion":"14.20.1","_npmVersion":"6.14.17","dist":{"integrity":"sha512-D3IUkTzLrnvgOs38HNqE8TK+sP7FDhdygVEzedsgwY1UIxPwxPFYuxRrdOcDHGQiwxHRORUHNudy2mEdxvHKkQ==","shasum":"53459ef728f601defc92ac7cdf61248a92d78b93","tarball":"http://registry-npm.ywwl.com/go-ipfs/download/go-ipfs-0.17.0.tgz","fileCount":14,"unpackedSize":19779,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIExbmcf7SRGBPe/7c5UPyk7AYOL91EJyqVplRcgDIk1AAiBdZi4TerclUBZRn0cJwNUG3fPtHfKbjxgd2mho8rgR3w=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjfOSDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr5iA//fgq4nEI7fgH6FrQ4hAECbcHiZQB7aP4lSQOmvb8tx2YAIg3M\r\nIVUVbEcQ7o6voyk1B+27YGNUxT2ePdmtvTYEqGm/JIeKfXMPygbwTEER0xYj\r\nrIf+6bkW1YJD2rbYQ5TMjXvX11aTgQyK61GbqV89h6ZcqyxSE2y8+XlTO2nN\r\nwz48DBAuxFbNHIut+hwRoqj57Sv2SDkF/ToD4jcb2Q+59zkHDtnb+ett1zWF\r\njYKI34XF7tAmji3ooLppNZczlidfU0afOqhukiAgtcuQ7Nl6sWOmPuJXuv6t\r\nSpKLf4bT5zLai1an0js+3Y4z/9ZVOh7Xv71eK8X9ISaoamt4G1nx/cjGlimj\r\n3FYJweigM2zgs73K7HNBrQ1gCBKv+p2zxpmeivY5lD4k+WTMQaW62hEMMe2b\r\n6eczLlOkX6JGIASPI4Utb3MX+jeQa/GAJ33JVc38WzqBTTEzH9wotg1KKh9G\r\nwqPq+kTu3jAVWUjbEJh3rZ3FAGdzzNm1QCEHsYoTJbBeK++6FiDnCYxV6Px0\r\nyPXOzXNaFn5HfOZj2OSzPrznUYKIAlbqM8L8W+3UA9boxIlyBrU1bc5GWxSE\r\njTWBtuYGkEv3M4WQdDefm8niR1qpBszi0nwFhOsHt57haaAl61q4Gt/Ykmfx\r\nE6m/p75sMts98UUOjtVCpXSVy/gfB2ViW5Y=\r\n=+S/l\r\n-----END PGP SIGNATURE-----\r\n","size":7428,"noattachment":false,"key":"/go-ipfs/-/go-ipfs-0.17.0.tgz"},"_npmUser":{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"},"directories":{},"maintainers":[{"name":"daviddias","email":"mail@daviddias.me"},{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"alanshaw","email":"alan138@gmail.com"},{"name":"olizilla","email":"oli@tableflip.io"},{"name":"lidel","email":"lidel@lidel.org"},{"name":"stebalien","email":"steven@stebalien.com"},{"name":"ipfsbot","email":"infra-accounts@protocol.ai"},{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/go-ipfs_0.17.0_1669129347115_0.9082579039707741"},"_hasShrinkwrap":false,"deprecated":"'go-ipfs' name has been deprecated. Please switch your dependency to 'kubo' - https://www.npmjs.com/package/kubo","readme":"# npm-go-ipfs\n\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](https://ipfs.tech/)\n[![standard-readme compliant](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n\n> install [Kubo](https://github.com/ipfs/kubo) (previously known as \"go-ipfs\") from npm\n\n## Table of Contents\n\n- [Install](#install)\n- [Usage](#usage)\n- [Development](#development)\n  - [Publish a new version](#publish-a-new-version)\n- [Contribute](#contribute)\n- [License](#license)\n\n## Install\n\nInstall the latest [Kubo](https://github.com/ipfs/kubo/) (go-ipfs) binary:\n\n```sh\n# Install globally\n> npm install -g go-ipfs\n> ipfs version\nipfs version v0.7.0\n\n# Install locally\n> npm install go-ipfs\n> ./node_modules/.bin/ipfs\nipfs version v0.7.0\n```\n\n## Usage\n\nThis module downloads Kubo (go-ipfs) binaries from https://dist.ipfs.tech into your project.\n\nIt will download the go-ipfs version that matches the npm version of this module. So depending on `go-ipfs@0.7.0` will install `go-ipfs v0.7.0` for your current system architecture, in to your project at `node_modules/go-ipfs/go-ipfs/ipfs` and additional symlink to it at `node_modules/go-ipfs/bin/ipfs`.\n\nAfter downloading you can find out the path of the installed binary by calling the `path` function exported by this module:\n\n```javascript\nconst { path } = require('go-ipfs')\n\nconsole.info('go-ipfs is installed at', path())\n```\n\nAn error will be thrown if the path to the binary cannot be resolved.\n\n### Caching\n\nDownloaded archives are placed in OS-specific cache directory which can be customized by setting `NPM_GO_IPFS_CACHE` in env.\n\n### Overriding with `KUBO_BINARY` env\n\nIf the `KUBO_BINARY` env variable is set at runtime this will override the path of the binary used.\n\nThis must point to the file, not the directory containing the file.\n\n## Development\n\n**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.\n\n### Publish a new version\n\nYou should be able to just run `./publish.sh` for example:\n\n```sh\n> ./publish.sh\nusage ./publish.sh <version>\npublish a version of go-ipfs to npm\n\n> ./publish.sh 0.3.11\n```\n\nThis will:\n\n- check the version is indeed a tag in https://github.com/ipfs/kubo\n- check the size of `bin/ipfs` is right (must be the checked in file)\n- update the version numbers in `package.json` and `README.md`\n- `git commit` the changes\n- push to https://github.com/ipfs/npm-go-ipfs\n- publish to `go-ipfs@$version` to https://npmjs.com/package/go-ipfs\n\nOpen an issue in the repo if you run into trouble.\n\n### Publish a new version of this module with exact same go-ipfs version\n\nIf 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:\n\n1. **Clean up bad stuff:** unpublish all modules with this exact same `<go-ipfs-version>`\n2. **Add a \"hacky\" version suffix:** use version: `<go-ipfs-version>-hacky<num>`\n3. **Publish version:** publish the module. Since it's the only one with the go-ipfs version, then it should be installed.\n\n> Why do this?\n\nWell, if you previously published npm module `go-ipfs@0.4.0` and there was a problem, we now must publish a different version, but we want to keep the version number the same. so the strategy is to publish as `go-ipfs@0.4.0-hacky1`, and unpublish `go-ipfs@0.4.0`.\n\n> Why `-hacky<num>`?\n\nBecause it is unlikely to be a legitimate go-ipfs version, and we want to support go-ipfs versions like `floodsub-1` etc.\n\n> Do i have to say `-hacky<num>` or can i just use `-<num>`?\n\n`-<num>` won't work, as [link-ipfs.js](./link-ipfs.js) expects `-hacky<num>`. If you want to\nchange the convention, go for it, and update this readme accordingly.\n\n## Contribute\n\nFeel free to join in. All welcome. Open an [issue](https://github.com/ipfs/npm-go-ipfs/issues)!\n\nThis repository falls under the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).\n\n[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/contributing.md)\n\n## License\n\n[MIT](LICENSE)\n","publish_time":1669129347293,"_cnpm_publish_time":1669129347293,"dist-tags":{"latest":"0.22.0","next":"0.22.0-rc1"}}