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.
Copy file name to clipboardExpand all lines: README.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -137,7 +137,7 @@ The CLI is available by using the command `jsipfs` in your terminal. This is ali
137
137
138
138
### Use in the browser with browserify, webpack or any bundler
139
139
140
-
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).
140
+
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 submitted 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).
141
141
142
142
You can also find examples of how to do this bundling at: `https://github.com/ipfs/js-ipfs/tree/master/examples`
143
143
@@ -151,18 +151,18 @@ The last published version of the package become [available for download](https:
The `jsipfs` CLI, available when `js-ipfs` is installed globably, follows(should, it is a WIP) the same interface defined by `go-ipfs`, you can always use the `help` command for help menus.
165
+
The `jsipfs` CLI, available when `js-ipfs` is installed globally, follows(should, it is a WIP) the same interface defined by `go-ipfs`, you can always use the `help` command for help menus.
166
166
167
167
```sh
168
168
# Install js-ipfs globally
@@ -285,7 +285,7 @@ Every IPFS instance also exposes the libp2p API at `ipfs.libp2p`. The formal int
285
285
286
286
## Development
287
287
288
-
### Clone and install dependnecies
288
+
### Clone and install dependencies
289
289
290
290
```sh
291
291
> git clone https://github.com/ipfs/js-ipfs.git
@@ -297,7 +297,7 @@ Every IPFS instance also exposes the libp2p API at `ipfs.libp2p`. The formal int
297
297
298
298
```sh
299
299
# run all the unit tsts
300
-
> npm test
300
+
> npm test
301
301
302
302
# run just IPFS tests inNode.js
303
303
> npm run test:unit:node:core
@@ -319,7 +319,7 @@ Every IPFS instance also exposes the libp2p API at `ipfs.libp2p`. The formal int
319
319
320
320
```sh
321
321
# run all the interop tsts
322
-
> npm run test:interop
322
+
> npm run test:interop
323
323
324
324
# run just IPFS interop tests inNode.js using one go-ipfs daemon and one js-ipfs daemon
325
325
> npm run test:interop:node
@@ -332,7 +332,7 @@ Every IPFS instance also exposes the libp2p API at `ipfs.libp2p`. The formal int
332
332
333
333
```sh
334
334
# run all the interop tsts
335
-
> npm run test:benchmark
335
+
> npm run test:benchmark
336
336
337
337
# run just IPFS benchmarks inNode.js
338
338
> npm run test:benchmark:node
@@ -373,11 +373,11 @@ Every IPFS instance also exposes the libp2p API at `ipfs.libp2p`. The formal int
373
373
> tree src -L2
374
374
src # Main source code folder
375
375
├── cli # Implementation of the IPFSCLI
376
-
│ └── ...
376
+
│ └── ...
377
377
├── http-api # The HTTP-API implementation ofIPFS as defined by http-api-spec
378
378
├── core # IPFS implementation, the core (what gets loaded in browser)
0 commit comments