https://github.com/lbenie/yify-api
Yify torrent api service written in TypeScript
https://github.com/lbenie/yify-api
torrents typescript-library yify yify-movies yify-torrents
Last synced: 6 months ago
JSON representation
Yify torrent api service written in TypeScript
- Host: GitHub
- URL: https://github.com/lbenie/yify-api
- Owner: lbenie
- License: mit
- Created: 2019-10-09T00:51:26.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-12-03T03:29:26.000Z (7 months ago)
- Last Synced: 2024-12-03T04:23:26.570Z (7 months ago)
- Topics: torrents, typescript-library, yify, yify-movies, yify-torrents
- Language: TypeScript
- Homepage:
- Size: 3.54 MB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# yify-api
[](https://travis-ci.org/lbenie/yify-api)
[](https://codecov.io/gh/lbenie/yify-api)
[](https://stryker-mutator.github.io)
[](http://commitizen.github.io/cz-cli/)







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
```ts
import { YifyService } from 'yify-api'// apiBaseUrl defaults to: https://yts.lt/api/v2/
const yifyService = new YifyService()yifyService.getMovies().then(movies => {
// movies
})
```### commonjs
```ts
const yifyApi = require('yify-api')const yifyService = new yifyApi.YifyService()
yifyService.getMovies().then(movies => {
// movies
})
```