Skip to content

Commit 4fcc3a6

Browse files
author
Pieter Colpaert
committed
Readme for #5
1 parent 214ad04 commit 4fcc3a6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ lcc -c config.json '{"arrivalStop" : "", "departureStop" : "", "departureTime":
2020
You can also use the demo queries added in the queries folder.
2121

2222
Use it as a library:
23-
```bash
23+
```javascript
2424
var Client = require('lc-client');
2525
var planner = new Client({"entrypoints" : ["http://belgianrail.linkedconnections.org/"]});
2626
planner.query({"arrivalStop" : "", "departureStop" : "", "departureTime": ""}, function (resultStream, source) {
@@ -36,11 +36,11 @@ planner.query({"arrivalStop" : "", "departureStop" : "", "departureTime": ""}, f
3636
});
3737
//you can also count the number of HTTP requests done by the interface as follows
3838
source.on('request', function (url) {
39-
console.log('Requesting',url);
39+
console.log('Requesting', url);
4040
});
4141
//you can also catch when a response is generated HTTP requests done by the interface as follows
4242
source.on('response', function (url) {
43-
console.log('Response received for',url);
43+
console.log('Response received for', url);
4444
});
4545
});
4646
```

0 commit comments

Comments
 (0)