Skip to content

Commit a6f45b1

Browse files
committed
cleaner readme [skip ci]
1 parent 8dfa6ae commit a6f45b1

1 file changed

Lines changed: 10 additions & 15 deletions

File tree

‎README.md‎

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,7 @@ httpsnippet my-api-endpoint.json --langauge php --output ./snippets
6969
```
7070

7171
```shell
72-
tree snippets
73-
```
74-
75-
```
72+
$ tree snippets
7673
snippets/
7774
└── my-api-endpoint.php
7875
```
@@ -84,21 +81,15 @@ httpsnippet /*.json --langauge nodejs --output ./snippets
8481
```
8582

8683
```shell
87-
tree sources/
88-
```
89-
90-
```
84+
$ tree sources/
9185
sources/
9286
├── endpoint-1.json
9387
├── endpoint-2.json
9488
└── endpoint-3.json
9589
```
9690

9791
```shell
98-
tree snippets/
99-
```
100-
101-
```
92+
$ tree snippets/
10293
snippets/
10394
├── endpoint-1.js
10495
├── endpoint-2.js
@@ -110,15 +101,19 @@ snippets/
110101

111102
```js
112103
var httpsnippet = require('httpsnippet');
113-
var snippet = new httpsnippet(source);
104+
105+
var snippet = new httpsnippet({
106+
method: 'GET',
107+
url: 'http://httpconsole.com/echo'
108+
});
114109

115110
// generate cURL output
116111
console.log(snippet.curl({
117-
indent: ' ';
112+
indent: '\t';
118113
}));
119114

120115
// generate nodeJS output
121-
snippet.nodejs();
116+
console.log(snippet.nodejs());
122117
```
123118

124119
## Documentation

0 commit comments

Comments
 (0)