Skip to content

Commit 71fb6f7

Browse files
committed
Fixed demo code snippets.
1 parent c8a635b commit 71fb6f7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Type: `object`
7979
Name of [conversion target](https://github.com/Mashape/httpsnippet/wiki/Targets)
8080

8181
```js
82-
var httpsnippet = require('httpsnippet');
82+
var HTTPSnippet = require('httpsnippet');
8383

8484
var snippet = new HTTPSnippet({
8585
method: 'GET',
@@ -103,7 +103,7 @@ Type: `object`
103103
Target options, *see [wiki](https://github.com/Mashape/httpsnippet/wiki/Targets) for details*
104104

105105
```js
106-
var httpsnippet = require('httpsnippet');
106+
var HTTPSnippet = require('httpsnippet');
107107

108108
var snippet = new HTTPSnippet({
109109
method: 'GET',
@@ -115,7 +115,7 @@ console.log(snippet.convert('node'));
115115

116116
// generate Node.js: Native output, indent with tabs
117117
console.log(snippet.convert('node', {
118-
indent: '\t';
118+
indent: '\t'
119119
}));
120120
```
121121

@@ -141,7 +141,7 @@ Type: `object`
141141
Target options, *see [wiki](https://github.com/Mashape/httpsnippet/wiki/Targets) for details*
142142

143143
```js
144-
var httpsnippet = require('httpsnippet');
144+
var HTTPSnippet = require('httpsnippet');
145145

146146
var snippet = new HTTPSnippet({
147147
method: 'GET',
@@ -150,7 +150,7 @@ var snippet = new HTTPSnippet({
150150

151151
// generate Shell: cURL output
152152
console.log(snippet.convert('shell', 'curl', {
153-
indent: '\t';
153+
indent: '\t'
154154
}));
155155

156156
// generate Node.js: Unirest output

0 commit comments

Comments
 (0)