You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
This project is available through [npm](https://www.npmjs.com/). To install:
6
+
7
+
```bash
8
+
$ npm install ipfs --save
9
+
```
10
+
11
+
Requires npm@3 and node >= 4, tested on OSX & Linux, expected to work on Windows.
12
+
13
+
### Use in Node.js
14
+
15
+
To include this project programmatically:
16
+
17
+
```js
18
+
varIPFS=require('ipfs')
19
+
20
+
var node =newIPFS()
21
+
```
22
+
23
+
### Through command line tool
24
+
25
+
In order to use js-ipfs as a CLI, you must install it with the `global` flag. Run the following (even if you have ipfs installed locally):
26
+
27
+
```bash
28
+
$ npm install ipfs --global
29
+
```
30
+
31
+
The CLI is available by using the command `jsipfs` in your terminal. This is aliased, instead of using `ipfs`, to make sure it does not conflict with the Go implementation.
32
+
33
+
### Use in the browser with browserify, webpack or any bundler
34
+
35
+
The code published to npm that gets loaded on require is in fact a ES5 transpiled version with the right shims added. This means that you can require it and use with your favourite bundler without having to adjust the asset management process.
36
+
37
+
```js
38
+
var ipfs =require('ipfs');
39
+
```
40
+
41
+
### Use in a browser using a script tag
42
+
43
+
Loading this module in a browser (using a `<script>` tag) makes the `Ipfs` object available in the global namespace.
44
+
45
+
The last published version of the package become [available for download](https://unpkg.com/ipfs/dist/) from [unpkg](https://unpkg.com/) and thus you may use it as the source:
0 commit comments