Skip to content

lbenie/yify-api

Repository files navigation

yify-api

Build Status codecov Mutation testing badge Commitizen friendly GitHub npm type definitions npm bundle size GitHub All Releases GitHub release (latest by date) npm npm Snyk Vulnerabilities for npm package

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
})