1.0.2 • Published 5 years ago
nyaa-api-v2 v1.0.2
Nyaa-api-v2 get new torrent from nyaa
Support npm: https://discord.gg/TfG5hep
npm i nyaa-api-v2
yarn add nyaa-api-v2
const nyaa_api = require("nyaa-api-v2");
nyaa_api.getNewTorrent().then(res => {
console.log(res); // array, type json
console.log(res[0]); // https://github.com/onepiecehung/nyaa-api/blob/master/data.json
console.log(res.length); // 75
});