Skip to content

Commit

Permalink
Examples (#154)
Browse files Browse the repository at this point in the history
* docs: update examples
  • Loading branch information
tcme authored and daviddias committed Jun 24, 2017
1 parent 2d2fef9 commit 5c4136d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions example.js → examples/disposableApi.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
'use strict'

// Start a disposable node, and get access to the api
// print the node id, and kill the temporary daemon
// print the node id

// IPFS_PATH will point to /tmp/ipfs_***** and will be
// cleaned up when the process exits.

const ipfsd = require('ipfsd-ctl')
const ipfsd = require('../')

ipfsd.disposableApi((err, ipfs) => {
if (err) throw err
Expand Down
2 changes: 1 addition & 1 deletion examples/id.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

var ipfsd = require('../index.js')
var ipfsd = require('../')

ipfsd.disposableApi(function (err, ipfs) {
if (err) throw err
Expand Down
2 changes: 1 addition & 1 deletion examples/local.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

var ipfsd = require('../index.js')
var ipfsd = require('../')

// opens an api connection to local running ipfs node

Expand Down

0 comments on commit 5c4136d

Please sign in to comment.