yify-api
v1.1.3
Published
yify torrent api
Downloads
12
Readme
yify-api
This module is a JavaScript wrapper around the Yify Torrents api.
TypeScript
This module is written in TypeScript and provides the typings.
Usage
It works both on the web and node.
module
import { YifyService } from 'yify-api'
// apiBaseUrl defaults to: https://yts.lt/api/v2/
const yifyService = new YifyService()
yifyService.getMovies().then(movies => {
// movies
})
commonjs
const yifyApi = require('yify-api')
const yifyService = new yifyApi.YifyService()
yifyService.getMovies().then(movies => {
// movies
})