Package Exports
- nyaatorrents
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (nyaatorrents) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
NyaaTorrents for Node.JS
About
This is a light abstraction of the search and view functions of NyaaTorrents (nyaa.eu, formerly nyaatorrents.info and nyaatorrents.org). It can currently search the main site and the sukebei variant.
Features such as uploading or managing torrents are planned and will be added after the read interface is stable.
Usage
#!/usr/bin/env node
var nyaatorrents = new require("nyaatorrents").client("www.nyaa.eu", 80, "/");
nyaatorrents.search({terms: "rozen maiden"}, function(err, entries) {
if (err) {
console.warn("[-] Error performing search: " + err.message);
return;
}
entries.forEach(function(entry) {
nyaatorrents.details(entry.id, function(err, entry) {
if (err) {
console.warn("[-] Error fetching details for entry: " + err.message);
return;
}
console.log(JSON.stringify(entry));
});
});
});U mad?
I can be contacted via email, github or a couple of different IRC networks. I frequent some channels on rizon and freenode primarily, and if I'm not playing silly games with my nick, you'll be able to find me there as "deoxxa".