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 Mar 10, 2020. It is now read-only.
See [API.md](API.md) and [`tests/api`](test/api) for details on available methods.
103
+
### API
104
+
105
+
> `WIP`
106
+
107
+
`js-ipfs-api` follows the spec defined by [`interface-ipfs-core`](https://github.com/ipfs/interface-ipfs-core), which governs the interface to expect from IPFS implementations. This interface is an current active endeavour, expect it to be complete in the following weeks (August 2016). You can use it today to consult the methods available.
108
+
109
+
### Extra API methods
110
+
111
+
Adding to the methods defined by [`interface-ipfs-core`](https://github.com/ipfs/interface-ipfs-core), `js-ipfs-api` exposes a set of extra utility methods.
112
+
113
+
A complete documentation for these methods is coming with: https://github.com/ipfs/js-ipfs-api/pull/305
103
114
104
115
### Callbacks and promises
105
116
@@ -118,13 +129,19 @@ ipfs.id()
118
129
This relies on a global `Promise` object. If you are in an environment where that is not
119
130
yet available you need to bring your own polyfill.
120
131
132
+
## Development
133
+
134
+
### Testing
135
+
136
+
We run tests by executing `npm test` in a terminal window, this will run both Node.js and Browser tests, both in Chrome and PhantomJS. To ensure that the module conforms with [`interface-ipfs-core`](https://github.com/ipfs/interface-ipfs-core) spec, we run the batch o tests provided by the interface module, which can be found [here](https://github.com/ipfs/interface-ipfs-core/tree/master/src)
137
+
121
138
## Contribute
122
139
123
140
The js-ipfs API is a work in progress. As such, there's a few things you can do right now to help out:
124
141
125
142
***[Check out the existing issues](https://github.com/ipfs/js-ipfs-api/issues)**!
126
143
***Perform code reviews**. More eyes will help a) speed the project along b) ensure quality and c) reduce possible future bugs.
127
-
***Add tests**. There can never be enough tests.
144
+
***Add tests**. There can never be enough tests. Note that interface tests exist inside [`interface-ipfs-core`](https://github.com/ipfs/interface-ipfs-core/tree/master/src)
128
145
***Contribute to the [FAQ repository](https://github.com/ipfs/faq/issues)** with any questions you have about IPFS or any of the relevant technology. A good example would be asking, 'What is a merkledag tree?'. If you don't know a term, odds are, someone else doesn't either. Eventually, we should have a good understanding of where we need to improve communications and teaching together to make IPFS and IPN better.
0 commit comments