nyaa-available

2.0.1 • Public • Published

nyaa-available npm version Build Status

Check nyaa.si to see if an episode if available

Install

$ npm install --save nyaa-available

Usage

const nyaa = require('nyaa-available');
 
nyaa.checkEpisode("Clannad", 23).then((res) => {
  console.log(res); // true
});
 
nyaa.checkEpisode("Clannad", 24).then((res) => {
  console.log(res); // false
});

API

.checkEpisode(string title, int episode): Promise(bool)

Checks the if the episode given exists. Returns a promise.

.modifyTitle(string title): string

Modify the title and return a name more suitable to search in nyaa.si

FAQ

Why are there occasional errors when calling the method many times?

Make sure that you query the site at an acceptable pace. For example, 1 request/second.

Help

If there is any problem with the package, please create an issue on github. Thanks!

Readme

Keywords

Package Sidebar

Install

npm i nyaa-available

Weekly Downloads

0

Version

2.0.1

License

MIT

Last publish

Collaborators

  • vija02