Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit d2a0960

Browse files
committed
docs: give some love to the readme, update what was out of date
1 parent e1ab5be commit d2a0960

File tree

1 file changed

+13
-20
lines changed

1 file changed

+13
-20
lines changed

README.md

Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
[![Coverage Status](https://coveralls.io/repos/github/ipfs/js-ipfs/badge.svg?branch=master)](https://coveralls.io/github/ipfs/js-ipfs?branch=master)
99
[![Travis CI](https://travis-ci.org/ipfs/js-ipfs.svg?branch=master)](https://travis-ci.org/ipfs/js-ipfs)
1010
[![Circle CI](https://circleci.com/gh/ipfs/js-ipfs.svg?style=svg)](https://circleci.com/gh/ipfs/js-ipfs)
11-
[![Dependency Status](https://david-dm.org/ipfs/js-ipfs.svg?style=flat-square)](https://david-dm.org/ipfs/js-ipfs) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)
11+
[![Dependency Status](https://david-dm.org/ipfs/js-ipfs.svg?style=flat-square)](https://david-dm.org/ipfs/js-ipfs)
12+
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)
1213
[![standard-readme compliant](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)
1314
[![](https://img.shields.io/badge/pm-waffle-yellow.svg?style=flat-square)](https://waffle.io/ipfs/js-ipfs)
1415
[![](https://img.shields.io/badge/interface--ipfs--core-API%20Docs-blue.svg)](https://github.com/ipfs/interface-ipfs-core)
@@ -24,7 +25,13 @@ This repo contains the JavaScript implementation of the IPFS protocol, with feat
2425

2526
### Project status
2627

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 🐉..
29+
30+
You can check the development status at:
31+
32+
- Original project [Roadmap](/ROADMAP.md).
33+
- [Waffle Board](https://waffle.io/ipfs/js-ipfs)
34+
- [IPFS Organization Roadmap](https://waffle.io/ipfs/roadmaps)
2835

2936
## Table of Contents
3037

@@ -93,17 +100,14 @@ The CLI is available by using the command `jsipfs` in your terminal. This is ali
93100

94101
### Use in the browser with browserify, webpack or any bundler
95102

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).
97104

98-
```js
99-
var ipfs = require('ipfs');
100-
```
101105

102106
### Use in a browser using a script tag
103107

104-
Loading this module in a browser (using a `<script>` tag) makes the `Ipfs` object available in the global namespace.
108+
Loading this module in a browser (using a `<script>` tag) makes the `Ipfs` object available in the global namespace.
105109

106-
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:
110+
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:
107111

108112

109113
```html
@@ -190,17 +194,11 @@ node.init({ emptyRepo: true, bits: 2048 }, (err) => {
190194
A complete API definition is in the works. Meanwhile, you can learn how to you use js-ipfs through the standard interface at [![](https://img.shields.io/badge/interface--ipfs--core-API%20Docs-blue.svg)](https://github.com/ipfs/interface-ipfs-core).
191195
192196
##### [Generic API](https://github.com/ipfs/interface-ipfs-core/tree/master/API/generic)
193-
194197
##### [Block API](https://github.com/ipfs/interface-ipfs-core/tree/master/API/block)
195-
196198
##### [Object API](https://github.com/ipfs/interface-ipfs-core/tree/master/API/object)
197-
198199
##### [Config API](https://github.com/ipfs/interface-ipfs-core/tree/master/API/config)
199-
200200
##### [Files API](https://github.com/ipfs/interface-ipfs-core/tree/master/API/files)
201-
202201
##### [Swarm API](https://github.com/ipfs/interface-ipfs-core/tree/master/API/swarm)
203-
204202
##### [libp2p API](https://github.com/libp2p/interface-libp2p)
205203
206204
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
210208
211209
## Development
212210
213-
### Clone
211+
### Clone and install dependnecies
214212
215213
```sh
216214
> git clone https://github.com/ipfs/js-ipfs.git
217215
> cd js-ipfs
218-
```
219-
220-
### Install Dependencies
221-
222-
```sh
223216
> npm install
224217
```
225218

0 commit comments

Comments
 (0)