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

Commit

Permalink
Merge pull request #107 from ipfs/travis
Browse files Browse the repository at this point in the history
Add travis CI badge to Readme
  • Loading branch information
daviddias committed Nov 7, 2015
2 parents 6566ecf + 2a9cc63 commit 61c8eb8
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
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/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)
[![](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)
[![Travis CI](https://travis-ci.org/ipfs/js-ipfs-api.svg?branch=master)](https://travis-ci.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.
Expand Down Expand Up @@ -68,7 +71,7 @@ array of files can be used.
```javascript
ipfs.add(files, function(err, res) {
if(err || !res) return console.error(err)

res.forEach(function(file) {
console.log(file.Hash)
console.log(file.Name)
Expand Down Expand Up @@ -111,7 +114,7 @@ Retrieve the contents of a single hash, or array of hashes.
```javascript
ipfs.cat(hashs, function(err, res) {
if(err || !res) return console.error(err)

if(res.readable) {
// Returned as a stream
res.pipe(process.stdout)
Expand All @@ -138,7 +141,7 @@ Get the node structure of a hash. Included in it is a hash and array to links.
```javascript
ipfs.ls(hashs, function(err, res) {
if(err || !res) return console.error(err)

res.Objects.forEach(function(node) {
console.log(node.Hash)
console.log("Links [%d]", node.Links.length)
Expand All @@ -158,7 +161,7 @@ curl "http://localhost:5001/api/v0/ls?arg=<hash>&stream-channels=true"
```js
{
Objects: [
{
{
Hash: string,
Links: [{
Name: string,
Expand Down

0 comments on commit 61c8eb8

Please sign in to comment.