This repository has been archived by the owner on Mar 10, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0c40084
commit 9d91267
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,3 +77,28 @@ ipfs.dns('ipfs.io', (err, path) => { | |
A great source of [examples][] can be found in the tests for this API. | ||
|
||
[examples]: https://github.com/ipfs/interface-ipfs-core/blob/master/src/miscellaneous.js | ||
|
||
#### `shutdown` | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
richardschneider
Author
Contributor
|
||
|
||
> Stop the ipfs daemon | ||
##### `Go` **WIP** | ||
|
||
##### `JavaScript` - ipfs.shutdown([callback]) | ||
|
||
`callback` must follow `function (err) {}` signature, where `err` is an error if the operation was not successful. | ||
If no `callback` is passed, a promise is returned. | ||
|
||
**Example:** | ||
|
||
```JavaScript | ||
ipfs.shutdown((err) => { | ||
if (err) { | ||
throw err | ||
} | ||
}) | ||
``` | ||
|
||
A great source of [examples][] can be found in the tests for this API. | ||
|
||
[examples]: https://github.com/ipfs/interface-ipfs-core/blob/master/src/miscellaneous.js |
@richardschneider needs to be added to the TOC on the main README.md