New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

go-ipfs

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

go-ipfs - npm Package Compare versions

Comparing version

to
0.4.0-hacky2

{
"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
[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://ipn.io) [![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/) [![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs) [![Dependency Status](https://david-dm.org/ipfs/npm-go-ipfs.svg?style=flat-square)](https://david-dm.org/ipfs/npm-go-ipfs)
[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://ipn.io)
[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)
[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)
[![standard-readme compliant](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)
[![Dependency Status](https://david-dm.org/ipfs/npm-go-ipfs.svg?style=flat-square)](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://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](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