nya
nyaatorrents
npm i nyaatorrents
nya

nyaatorrents

NyaaTorrents client for Node.JS

by Conrad Pankoff

1.0.4 (see all)License:BSD-2-ClauseTypeScript:Not Found
npm i nyaatorrents
Readme

node-nyaatorrents

Search and fetch torrent information from NyaaTorrents.

Overview

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.

Installation

Available via npm:

$ npm install nyaatorrents

Or via git:

$ git clone git://github.com/deoxxa/node-nyaatorrents.git node_modules/nyaatorrents

Usage

var NT = require("nyaatorrents"),
    nt = new NT("http://www.nyaa.eu");

nt.search({term: "rozen maiden"}, function(err, entries) {
  if (err) {
    return console.warn(err);
  }

  entries.forEach(function(entry) {
    nt.get(entry.id, function(err, entry) {
      if (err) {
        return console.warn(err);
      }

      console.log(JSON.stringify(entry));
    });
  });
});

License

3-clause BSD. A copy is included with the source.

Contact

Downloads/wk

21

GitHub Stars

15

LAST COMMIT

9yrs ago

MAINTAINERS

1

CONTRIBUTORS

1

OPEN ISSUES

0

OPEN PRs

1
VersionTagPublished
1.0.4
latest
9yrs ago
No alternatives found
No tutorials found
Add a tutorial