Skip to content

Latest commit

 

History

History
49 lines (35 loc) · 1.61 KB

README.md

File metadata and controls

49 lines (35 loc) · 1.61 KB

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