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

Nyaa.si api wrapper for Node written in Typescript

  • 3.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-75%
Maintainers
1
Weekly downloads
 
Created
Source

@ejnshtein/nyaasi

NPM Version npm downloads License codecov

This is unofficial Nyaa.si website api wrapper.

Installation

npm i @ejnshtein/nyaasi

# or

yarn add @ejnshtein/nyaasi

Example

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.


Contact

My telegram and a group where you can ask your questions or suggest something.

Keywords

FAQs

Package last updated on 31 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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