Neglected Pulse Machine

    yify-api
    TypeScript icon, indicating that this package has built-in type declarations

    1.1.3 • Public • Published

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

    Keywords

    none

    Install

    npm i yify-api

    DownloadsWeekly Downloads

    4

    Version

    1.1.3

    License

    MIT

    Unpacked Size

    43.2 kB

    Total Files

    30

    Last publish

    Collaborators

    • lbenie