Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit ee87a6d

Browse files
committed
small update readme
1 parent a969c3e commit ee87a6d

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,12 @@ The tests folder also contains great examples that can be used to understand how
8585

8686
##### object
8787

88-
**Curl**
88+
*curl*
8989
```sh
9090
curl 'http://localhost:5001/api/v0/object/get?arg=QmYEqnfCZp7a39Gxrgyv3qRS4MoCTGjegKV6zroU3Rvr52&stream-channels=true' --compressed
9191
```
9292

93-
**Response**
93+
*response*
9494
```js
9595
{
9696
Links: [{
@@ -121,7 +121,7 @@ Add a file (where file is any data) to ipfs returning the hash and name. The
121121
name value will only be set if you are actually sending a file. A single or
122122
array of files can be used.
123123

124-
**Usage**
124+
*usage*
125125
```javascript
126126
ipfs.add(files, function(err, res) {
127127
if(err || !res) return console.error(err)
@@ -142,15 +142,15 @@ var files = ["../files/hello.txt", new Buffer("ipfs!")]
142142
var files = "../files/hello.txt"
143143
```
144144

145-
**Curl**
145+
*curl*
146146
```sh
147147
curl 'http://localhost:5001/api/v0/add?stream-channels=true' \
148148
-H 'content-type: multipart/form-data; boundary=a831rwxi1a3gzaorw1w2z49dlsor' \
149149
-H 'Connection: keep-alive' \
150150
--data-binary $'--a831rwxi1a3gzaorw1w2z49dlsor\r\nContent-Type: application/octet-stream\r\nContent-Disposition: file; name="file"; filename="Hello.txt"\r\n\r\nhello--a831rwxi1a3gzaorw1w2z49dlsor--' --compressed
151151
```
152152

153-
**Response**
153+
*response*
154154
```js
155155
[{
156156
Hash: string,
@@ -163,7 +163,7 @@ curl 'http://localhost:5001/api/v0/add?stream-channels=true' \
163163

164164
Retrieve the contents of a single hash, or array of hashes.
165165

166-
**Usage**
166+
**usage**
167167

168168
```javascript
169169
ipfs.cat(hashs, function(err, res) {
@@ -179,20 +179,20 @@ ipfs.cat(hashs, function(err, res) {
179179
})
180180
```
181181

182-
**Curl**
182+
*curl*
183183

184184
```sh
185185
curl "http://localhost:5001/api/v0/cat?arg=<hash>&stream-channels=true"
186186
```
187187

188-
**Response**
188+
*response*
189189

190190
The response is either a readable stream, or a string.
191191

192192
##### ls
193193
Get the node structure of a hash. Included in it is a hash and array to links.
194194

195-
**Usage**
195+
*Usage*
196196
```javascript
197197
ipfs.ls(hashs, function(err, res) {
198198
if(err || !res) return console.error(err)
@@ -207,12 +207,12 @@ ipfs.ls(hashs, function(err, res) {
207207
})
208208
```
209209

210-
**Curl**
210+
*Curl*
211211
```sh
212212
curl "http://localhost:5001/api/v0/ls?arg=<hash>&stream-channels=true"
213213
```
214214

215-
**Response**
215+
*Response*
216216
```js
217217
{
218218
Objects: [

0 commit comments

Comments
 (0)