# @spacepumpkin/modified-nyaapi

> Non-official api for getting torrent links from Nyaa.si and Nyaa.pantsu.cat

Latest version **2.3.4** (published 2021-02-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install @spacepumpkin/modified-nyaapi
pnpm add @spacepumpkin/modified-nyaapi
yarn add @spacepumpkin/modified-nyaapi
bun add @spacepumpkin/modified-nyaapi
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.3.4 |
| Published | 2021-02-02 |
| First published | 2021-02-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 36.9 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Kylart |
| Maintainers | drspacepumpkin |
| Keywords | kawanime, nyaa-si, nyaa-pantsu, torrent, magnet-links |

## Links

- npm: https://www.npmjs.com/package/@spacepumpkin/modified-nyaapi
- Repository: https://github.com/Kylart/Nyaapi
- Homepage: https://github.com/Kylart/Nyaapi#readme
- Issues: https://github.com/Kylart/Nyaapi/issues
- npm.io page: https://npm.io/package/@spacepumpkin/modified-nyaapi

## Dependencies (5)

- [cheerio](https://npm.io/package/cheerio.md) ^1.0.0-rc.3
- [request](https://npm.io/package/request.md) ^2.88.0
- [lodash.omit](https://npm.io/package/lodash.omit.md) ^4.5.0
- [request-promise](https://npm.io/package/request-promise.md) ^4.2.5
- [@spacepumpkin/proxy-gateway](https://npm.io/package/@spacepumpkin/proxy-gateway.md) ^1.210202.2

## Recent versions

- 2.3.4 (latest) — 2021-02-02

## README

<h1 align="center">Nyaapi 2.0</h1>

<p align="center">
  <a href="http://forthebadge.com/" target="_blank">
    <img src="http://forthebadge.com/images/badges/built-with-love.svg"/>
  </a>
</p>

<p align="center">
  <a href="https://standardjs.com/" target="_blank">
    <img src="https://cdn.rawgit.com/feross/standard/master/badge.svg" />
  </a>
</p>

<p align="center">
  <a href="https://travis-ci.org/Kylart/Nyaapi" target="_blank">
    <img src="https://travis-ci.org/Kylart/Nyaapi.svg?branch=master" alt="Build Status">
  </a>
  <a href="https://codecov.io/gh/Kylart/Nyaapi" target="_blank">
    <img src="https://codecov.io/gh/Kylart/Nyaapi/branch/master/graph/badge.svg" alt="Codecov" />
  </a>
  <a href="https://opensource.org/licenses/MIT" target="_blank">
    <img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="License">
  </a>
</p>

This is an api allowing one to:
* gather torrents directly from [nyaa.si](https://nyaa.si) and [nyaa.pantsu.cat](https://nyaa.pantsu.cat) in about a second or less.
* upload a torrent to any nyaa.
* check a user's profile and torrents.
* So many things you should check the wiki to understand better.

__All the documentation there is to know about how to use Nyaapi is located in the [wiki](https://github.com/Kylart/Nyaapi/wiki).__

Any contribution is welcomed.

# Install
```
npm install --save nyaapi
```

# Use
Nyaapi is organised with `si` methods and `pantsu` methods.
You can access either of them like so:
```javascript
const {si, pantsu} = require('nyaapi')

console.log(si)
/**
 * [Si] methods:
 *   > list
 *   > search
 *   > searchAll
 *   > searchPage
 *   > searchByUser
 *   > searchAllByUser
 *   > searchByUserAndByPage
 *   > infoRequest
 *   > upload
 * 
 */
console.log(pantsu)
/**
 * [Pantsu] methods:
 *   > list
 *   > search
 *   > searchAll
 *   > infoRequest
 *   > upload
 *   > update
 *   > login
 *   > checkUser
 *   > checkHeader
 * 
 */
```

It is important to know that all the pantsu methods are fully based on [the offcial api of nyaa.pantsu.cat](https://nyaa.pantsu.cat/apidoc).

> For a complete documentation, please check out the [wiki](https://github.com/Kylart/Nyaapi/wiki) for a tour of all the methods and how to use them.

---
_Source: https://npm.io/package/@spacepumpkin/modified-nyaapi · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
