Skip to content

Commit cb83a9a

Browse files
committed
Merge pull request #18 from joshwnj/master
Fixed some typos
2 parents e56d561 + 4b8ac6f commit cb83a9a

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
NodeJS bindings for broswermob-proxy to programmatically generate HAR files
1+
NodeJS bindings for browsermob-proxy to programmatically generate HAR files
22
===========================
33

44
1. First see [browsermob-proxy](https://github.com/webmetrics/browsermob-proxy)
@@ -87,7 +87,7 @@ EXAMPLE:
8787

8888
```javascript
8989

90-
var Proxy = require('browsermode-proxy').Proxy;
90+
var Proxy = require('browsermob-proxy').Proxy;
9191
, proxy = new Proxy();
9292

9393
proxy.doHAR('http://yahoo.com', function(err, data) {
@@ -221,7 +221,7 @@ var webdriverjs = require("webdriverjs")
221221
if(!err) {
222222
proxy.startHAR(data.port, 'http://localhost:8004', function (err, resp) {
223223
if (!err) {
224-
// DO WHATEVER WEB INTERFACTION YOU WANT USING THE PROXY
224+
// DO WHATEVER WEB INTERACTION YOU WANT USING THE PROXY
225225
doSeleniumStuff(proxyHost + ':' + data.port, function () {
226226
proxy.getHAR(data.port, function(err, resp) {
227227
if (!err) {
@@ -270,7 +270,7 @@ function doSeleniumStuff(proxy, cb) {
270270
}
271271
```
272272

273-
In this example I am manually controlling the browsermob-proxy - the convenenice methods 'doHAR' and 'cbHAR' do most of this stuff for you so use them!
273+
In this example I am manually controlling the browsermob-proxy - the convenience methods 'doHAR' and 'cbHAR' do most of this stuff for you so use them!
274274

275275
The sequence is
276276

@@ -285,15 +285,15 @@ Full API
285285
--------
286286

287287
**start([ PORT ], CALLBACK)**
288-
289-
Initiailizes a proxy
288+
289+
Initializes a proxy
290290

291291
PARAMETERS:
292292

293-
* an optional PORT paramter specifying which port to open up a proxy on - if not provided browsermob will pick one.
294-
* CALLBACK(ERROR, DATA) function
295-
1. ERROR string if there was an error
296-
2. DATA object whose only memeber is 'port' - the port the proxy is listening on
293+
* an optional PORT parameter specifying which port to open up a proxy on - if not provided browsermob will pick one.
294+
* CALLBACK(ERROR, DATA) function
295+
1. ERROR string if there was an error
296+
2. DATA object whose only member is 'port' - the port the proxy is listening on
297297

298298
**startHAR(PORT, [ NAME, CAPTUREHEADERS, CAPTURECONTENT, CAPTUREBINARYCONTENT ], CALLBACK)**
299299

bin/runCasper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ if (!name) {
1212
process.exit(1);
1313
}
1414

15-
proxy.selHAR(name, doCasperJSStuff, function(err, data) {
15+
proxy.cbHAR(name, doCasperJSStuff, function(err, data) {
1616
if (err) {
1717
console.error('ERR: ' + err);
1818
} else {

0 commit comments

Comments
 (0)