I got pretty excited about Node.js during the last day, especially after discovering that there are already a whole bunch of modules available for it:
http://github.com/ry/node/wiki/modules
I needed clients for both Amazon EC2 and the Product Advertising API so I had a closer look at Blake Mizerany’s swirl-node. As swirl-node only supports EC2 calls I decided to code my own little module. I thought it would be best to have a generic part every Amazon API requires and more specific parts for EC2, Product Advertising and what else I may need in the future.
After a few hours of hacking and browsing the Node.js documentation I finally got it working.
Some simple usage examples:
1 2 3 4 5 6 7 | |
Returns you details about your EC2 instances:
1 2 3 4 5 6 7 | |
or when using the Product Advertising API:
1 2 3 4 | |
In fact returns you a long list of Books with details…
Everyone who needs something similar can give it a try at github and hopefully give me feedback: