cgiffard/node-simplecrawler — pull request #61 by nisaacson (2013-10-22 20:49:24+00:00)
Title: Sync

The README.md gives an example of getting statistics about the queue synchronously. However the code is only setup to accept a callback. This pull request adds returning values synchronously when possible.

```javascript
var redirectCount = crawler.queue.countWithStatus("redirected");

crawler.queue.getWithStatus("failed").forEach(function(queueItem) {
console.log("Whoah, the request for %s failed!",queueItem.url);

// do something...
});
```

Also I cleaned up some messy whitespace.

Finally I added `.editorconfig` and `.jshintrc` files to make contributing to the project easier.