rubygems
v1.0.3
Published
Search and browse Ruby gems from Node.js
Downloads
100
Maintainers
Readme
Installation
You can download and install the package with npm:
npm install rubygems --save
Usage
var gems = require('rubygems');
gems.search('rails', function (err, res) {
if (err) {
console.log(err);
return;
}
console.log("Found " + res.length + " gems.");
for (var i = 0; i < res.length; i++) {
console.log(res[i].name, res[i].version);
}
});
gems.gem('rails', function (err, gem) {
if (err) {
console.log(err);
return;
}
console.log(gem.name, gem.version);
});