1.0.0 • Published 7 years ago
nyaa.se-api v1.0.0
nyaa.se-api
About
nyaa.se-api
is a small library that allows you to fetch list of latest torrents from nyaa.se
- Object-oriented
- Small
- Simple
Installation
npm install --save nyaa.se-api
How to use
// Load basic classes
const { NyaaApi, NyaaSearch } = require('nyaa.se-api');
(async () => {
let api = new NyaaApi();
let search = new NyaaSearch('[HorribleSubs]'); // Search torrents which name contains '[HorribleSubs]'
let results = await api.search(search);
results.forEach(entiny => {
console.log(entiny.title); // Print name
});
})();
Documentation
Soon...
License
1.0.0
7 years ago