Vizzuality/cartodb-nodejs — pull request #16 by danzajdband (2012-12-14 13:58:44+00:00)
Title: V2proposal

This is my proposal for a new version of the library.

- First of all IMO makes more sense to pass a callback to the queries instead of wait for (mixed) responses. With the callback it comes the error if any and the responses.

- Made some changes on the lib internals in favor of simplicity.

- Added learnboost/superagent-oauth in order to make simpler oAuth API calls.

- Added visionmedia/debug module to provide some request internal info and API request "benchmarks".

- Now the client inherits from Stream instead of EventEmitter adding the possiblity to pipe query responses as newline delimited JSON text (I added an example to the /examples folder).