UNPKG
nyaa-api-v2
Version:
latest (1.0.2)
1.0.2
1.0.1
1.0.0
This api for get new torrent from nyaa
github.com/onepiecehung/nyaa-api
onepiecehung/nyaa-api
nyaa-api-v2
/
example.js
6 lines
(5 loc)
•
187 B
JavaScript
View Raw
1
2
3
4
5
6
var
testv =
require
(
"./index"
) testv.
getNewTorrent
().
then
(
res
=>
{
console
.
log
(res[
0
])
// https://github.com/onepiecehung/nyaa-api/data.json
console
.
log
(res.
length
)
// 75
})