{ | ||
"name": "go-ipfs", | ||
"version": "0.3.11", | ||
"version": "0.4.0-hacky2", | ||
"description": "Install the latest go-ipfs binary", | ||
"main": "index.js", | ||
"scripts": { | ||
"install": "node install.js", | ||
"install": "node link-ipfs.js", | ||
"test": "tape test/*.js | tap-spec" | ||
@@ -18,6 +18,8 @@ }, | ||
"dependencies": { | ||
"extract-zip": "^1.0.3", | ||
"go-ipfs-dep": "0.4.0-1", | ||
"go-platform": "^1.0.0", | ||
"mkdirp": "^0.5.0", | ||
"nugget": "^1.2.0" | ||
"gunzip-maybe": "^1.3.1", | ||
"request": "^2.75.0", | ||
"tar-fs": "^1.13.2", | ||
"unzip": "^0.1.11" | ||
}, | ||
@@ -24,0 +26,0 @@ "keywords": [ |
@@ -1,5 +0,22 @@ | ||
# install go-ipfs from npm | ||
# npm-go-ipfs | ||
[](http://ipn.io) [](http://ipfs.io/) [](http://webchat.freenode.net/?channels=%23ipfs) [](https://david-dm.org/ipfs/npm-go-ipfs) | ||
[](http://ipn.io) | ||
[](http://ipfs.io/) | ||
[](http://webchat.freenode.net/?channels=%23ipfs) | ||
[](https://github.com/RichardLitt/standard-readme) | ||
[](https://david-dm.org/ipfs/npm-go-ipfs) | ||
> install go-ipfs from npm | ||
## Table of Contents | ||
- [Install](#install) | ||
- [Usage](#usage) | ||
- [Development](#development) | ||
- [Publish a new version](#publish-a-new-version) | ||
- [Contribute](#contribute) | ||
- [License](#license) | ||
## Install | ||
Install the latest [go-ipfs](https://github.com/ipfs/go-ipfs/) binary. | ||
@@ -13,3 +30,2 @@ | ||
## Usage | ||
@@ -20,7 +36,7 @@ | ||
> ipfs version | ||
ipfs version 0.3.11 | ||
ipfs version 0.4.0 | ||
> npm install go-ipfs | ||
> node_modules/.bin/ipfs | ||
ipfs version 0.3.11 | ||
ipfs version 0.4.0 | ||
``` | ||
@@ -36,1 +52,36 @@ | ||
**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. (**TODO: add a pre-commit or pre-publish hook that warns about this**) | ||
### Publish a new version | ||
You should be able to just run `./publish.sh` for example: | ||
```sh | ||
> ./publish.sh | ||
usage ./publish.sh <version> | ||
publish a version of go-ipfs to npm | ||
> ./publish.sh 0.3.11 | ||
``` | ||
This will: | ||
- check the version is indeed a tag in https://github.com/ipfs/go-ipfs | ||
- check the size of `bin/ipfs` is right (must be the checked in file) | ||
- update the version numbers in `package.json` and `README.md` | ||
- `git commit` the changes | ||
- push to https://github.com/ipfs/npm-go-ipfs | ||
- publish to `go-ipfs@$version` to https://npmjs.com/package/go-ipfs | ||
Open an issue in the repo if you run into trouble. | ||
## Contribute | ||
Feel free to join in. All welcome. Open an [issue](https://github.com/ipfs/npm-go-ipfs/issues)! | ||
This repository falls under the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md). | ||
[](https://github.com/ipfs/community/blob/master/contributing.md) | ||
## License | ||
[MIT](LICENSE) |
var test = require('tape') | ||
var fs = require('fs') | ||
var path = require('path') | ||
var cp = require('child_process') | ||
var ipfs = require('../') | ||
var ipfs = path.join(__dirname, "..", "bin", "ipfs") | ||
@@ -6,0 +7,0 @@ test('ensure ipfs bin path exists', function(t) { |
Sorry, the diff of this file is not supported yet
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
9466
9.13%85
150%6
50%11
-8.33%108
-21.74%2
100%