@ejnshtein/nyaasi
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -10,4 +10,4 @@ import { AgentOptions, GetTorrentOptions, NyaaRequestOptions, SearchQuery } from '../types/agent'; | ||
static search(query: string | SearchQuery, options?: NyaaRequestOptions<'text'>): Promise<SearchResult>; | ||
getTorrentAnonymous(id: number, options?: GetTorrentOptions, params?: {}): Promise<ViewTorrent>; | ||
getTorrentAnonymous(id: number, args?: GetTorrentOptions, options?: NyaaRequestOptions<'text'>): Promise<ViewTorrent>; | ||
static getTorrentAnonymous(id: number, args?: GetTorrentOptions, options?: NyaaRequestOptions<'text'>): Promise<ViewTorrent>; | ||
} |
@@ -67,5 +67,5 @@ "use strict"; | ||
// } | ||
getTorrentAnonymous(id, options = { withComments: false }, params = {}) { | ||
getTorrentAnonymous(id, args = { withComments: false }, options = {}) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return Nyaa.getTorrentAnonymous(id, options, params); | ||
return Nyaa.getTorrentAnonymous(id, args, options); | ||
}); | ||
@@ -72,0 +72,0 @@ } |
{ | ||
"name": "@ejnshtein/nyaasi", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "Nyaa.si api wrapper for Node written in Typescript", | ||
@@ -32,2 +32,3 @@ "main": "./dist/index.js", | ||
"repository": "github:ejnshtein/nyaa-api", | ||
"homepage": "https://ejnshtein.github.io/nyaa-api/", | ||
"author": "ejnshtein", | ||
@@ -57,2 +58,3 @@ "license": "MIT", | ||
"eslint-plugin-standard": "^5.0.0", | ||
"gh-pages": "^3.1.0", | ||
"husky": "^4.3.7", | ||
@@ -59,0 +61,0 @@ "jest": "^26.6.3", |
@@ -1,3 +0,50 @@ | ||
# nyaasi | ||
# @ejnshtein/nyaasi | ||
Documentation comming soon... | ||
[![NPM Version](https://img.shields.io/npm/v/@ejnshtein/nyaasi.svg?style=flat-square)](https://www.npmjs.com/package/@ejnshtein/nyaasi) | ||
[![npm downloads](https://img.shields.io/npm/dm/@ejnshtein/nyaasi.svg?style=flat-square)](http://npm-stat.com/charts.html?package=@ejnshtein/nyaasi) | ||
[![License](https://img.shields.io/npm/l/@ejnshtein/nyaasi?style=flat-square)](https://github.com/ejnshtein/nyaasi) | ||
[![codecov](https://codecov.io/gh/ejnshtein/nyaa-api/branch/master/graph/badge.svg)](https://codecov.io/gh/ejnshtein/nyaa-api) | ||
This is unofficial [Nyaa.si](https://nyaa.si) website api wrapper. | ||
## Installation | ||
```bash | ||
npm i @ejnshtein/nyaasi | ||
# or | ||
yarn add @ejnshtein/nyaasi | ||
``` | ||
## Example | ||
```js | ||
const { Nyaa } = require('@ejnshtein/nyaasi') | ||
Nyaa.search({ | ||
title: 'Kotonoha no Niwa', | ||
category: '1_2' | ||
}).then(result => { | ||
console.log(`Found ${result.torrents.length} torrents.`) | ||
}) | ||
Nyaa.getTorrentAnonymous(890127) | ||
.then(torrent => { | ||
console.log(`Torrent is made by ${torrent.submitter.name}`) | ||
console.log(`Stats: ${torrent.stats.seeders} seeders, ${torrent.stats.leechers} leechers and ${torrent.stats.downloaded} downloads.`) | ||
console.log(`Magnet link: ${torrent.links.magnet}`) | ||
}) | ||
``` | ||
## API | ||
API section is available on the [website](https://ejnshtein.github.io/nyaa-api/). | ||
--- | ||
## Contact | ||
[My telegram](https://t.me/ejnshtein) and a [group](https://t.me/nyaasi_chat) where you can ask your questions or suggest something. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
46207
51
0
25