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.
@@ -24,7 +25,13 @@ This repo contains the JavaScript implementation of the IPFS protocol, with feat
24
25
25
26
### Project status
26
27
27
-
Consult the [Roadmap](/ROADMAP.md) for a complete state description of the project, or you can find `in process` updates in our [`Captain.log`](https://github.com/ipfs/js-ipfs/issues/30). A lot of components can be used currently, but it is a WIP, so beware of the Dragons 🐉.
28
+
We've come a long way, but this project is still in Alpha, lots of development is happening, API might change, beware of the Dragons 🐉..
@@ -93,17 +100,14 @@ The CLI is available by using the command `jsipfs` in your terminal. This is ali
93
100
94
101
### Use in the browser with browserify, webpack or any bundler
95
102
96
-
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.
103
+
Simply require it as you would do for Node.js, but when transpiling+minifying with your bundler, make sure to swap `zlib`with a full replacement for the browser: `zlib: 'browserify-zlib-next'`. We have submited PR's to browserify and WebPack to make this as part of the standard node libraries that are transpiled, you can follow this development in [browserify](https://github.com/substack/node-browserify/issues/1672), [webpack](https://github.com/webpack/node-libs-browser/issues/51).
97
104
98
-
```js
99
-
var ipfs =require('ipfs');
100
-
```
101
105
102
106
### Use in a browser using a script tag
103
107
104
-
Loading thismodule in a browser (using a `<script>` tag) makes the `Ipfs` object available in the global namespace.
108
+
Loading thismodule in a browser (using a `<script>` tag) makes the `Ipfs` object available in the global namespace.
105
109
106
-
The last published version ofthepackage become [available for download](https://unpkg.com/ipfs/dist/) from[unpkg](https://unpkg.com/) andthus youmayuseit asthesource:
110
+
The last published version ofthepackage become [available for download](https://unpkg.com/ipfs/dist/) from[unpkg](https://unpkg.com/) andthus youmayuseit asthesource:
A complete API definition is in the works. Meanwhile, you can learn how to you use js-ipfs through the standard interface at [](https://github.com/ipfs/interface-ipfs-core).
Every IPFS instance also exposes the libp2p API at `ipfs.libp2p`. The formal interface for this API hasn't been defined by you can find documentation at its implementations:
@@ -210,16 +208,11 @@ Every IPFS instance also exposes the libp2p API at `ipfs.libp2p`. The formal int
0 commit comments