nyaa-api:用于Node.js的非官方Nyaa.si API

时间:2024-06-05 17:56:40
【文件属性】:

文件名称:nyaa-api:用于Node.js的非官方Nyaa.si API

文件大小:122KB

文件格式:ZIP

更新时间:2024-06-05 17:56:40

nyaa nyaa-si TypeScript

@ ejnshtein / nyaasi 这是非官方的网站api包装器。 安装 npm i @ejnshtein/nyaasi # or yarn add @ejnshtein/nyaasi 例子 const { Nyaa } = require ( '@ejnshtein/nyaasi' ) Nyaa . search ( { title : 'Kotonoha no Niwa' , category : '1_2' } ) . then ( result => { console . log ( `Found ${ result . torrents . length } torrents.` ) } ) Nyaa . getTorrentAnonymous ( 890127 ) . then ( torrent => { console . log ( `


【文件预览】:
nyaa-api-dev
----jest()
--------get-test-client.ts(857B)
--------jest.setup.ts(23B)
----.github()
--------workflows()
----src()
--------index.ts(110B)
--------Agent.ts(2KB)
--------lib()
--------NyaaRss.ts(1KB)
--------Nyaa.ts(3KB)
--------Scraper.ts(11KB)
----.vscode()
--------launch.json(537B)
--------settings.json(278B)
----typedoc.json(266B)
----types()
--------domhandler.d.ts(2KB)
--------nyaa.d.ts(2KB)
--------index.d.ts(78B)
--------agent.d.ts(794B)
--------cheerio.d.ts(8KB)
----tsconfig.json(324B)
----LICENSE(1KB)
----__tests__()
--------user.test.ts(330B)
--------nyaa.test.ts(2KB)
----.gitignore(80B)
----readme.md(1KB)
----package-lock.json(444KB)
----package.json(3KB)

网友评论