Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ejnshtein/nyaasi

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ejnshtein/nyaasi - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

2

dist/Nyaa.d.ts

@@ -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.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc