Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ipfs-inactive/js-ipfs-http-client
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 9bd2833fb2ce
Choose a base ref
...
head repository: ipfs-inactive/js-ipfs-http-client
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 76ee9d8fc9c1
Choose a head ref
Loading
Showing with 1,335 additions and 22,818 deletions.
  1. +4 −0 .eslintrc
  2. +2 −0 .gitignore
  3. +4 −0 .travis.yml
  4. +4 −5 README.md
  5. +1 −22,250 dist/ipfsapi.js
  6. +1 −9 dist/ipfsapi.min.js
  7. +24 −0 gulpfile.js
  8. +79 −0 karma.conf.js
  9. +37 −19 package.json
  10. +7 −5 src/config.js
  11. +1 −2 src/get-files-stream.js
  12. +13 −10 src/index.js
  13. +114 −86 src/request-api.js
  14. +103 −0 tasks/daemons.js
  15. +14 −0 tasks/lint.js
  16. +44 −0 tasks/test.js
  17. +5 −0 test/.eslintrc
  18. +1 −0 test/r-config.json
  19. +22 −0 test/test-folder/add.js
  20. +18 −0 test/test-folder/cat.js
  21. +1 −0 test/test-folder/files/hello.txt
  22. +1 −0 test/test-folder/files/ipfs.txt
  23. +12 −0 test/test-folder/ipfs-add.js
  24. +18 −0 test/test-folder/ls.js
  25. +8 −0 test/test-folder/version.js
  26. +0 −432 test/test.js
  27. +797 −0 test/tests.js
4 changes: 4 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"parser": "babel-eslint",
"extends": "standard"
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
node_modules
some-test.js
npm-debug.log
sauce_connect.log
test/tmp-disposable-nodes-addrs.json
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
language: node_js
node_js:
- "4.0"

before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
IPFS API wrapper library for Node.js and the browser
====================================================
IPFS API wrapper library in JavaScript
======================================

[![](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/node-ipfs-api.svg?style=flat-square)](https://david-dm.org/ipfs/node-ipfs-api)
[![Circle CI](https://circleci.com/gh/ipfs/node-ipfs-api.svg?style=svg)](https://circleci.com/gh/ipfs/node-ipfs-api)
[![](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/freejs-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs) [![Dependency Status](https://david-dm.org/ipfs/js-ipfs-api.svg?style=flat-square)](https://david-dm.org/ipfs/js-ipfs-api) [![Circle CI](https://circleci.com/gh/ipfs/js-ipfs-api.svg?style=svg)](https://circleci.com/gh/ipfs/js-ipfs-api)

> A client library for the IPFS API.
@@ -25,7 +24,7 @@ var ipfs = ipfsAPI('localhost', '5001') // leaving out the arguments will defaul

### In the Browser through browserify

Same as in Node.js, you just have to [browserify](https://github.com/substack/node-browserify) the code before serving it. See the browserify repo for how to do that.
Same as in Node.js, you just have to [browserify](https://github.com/substack/js-browserify) the code before serving it. See the browserify repo for how to do that.

### In the Browser through `<script>` tag

Loading