ncore-api-wrapper
TypeScript icon, indicating that this package has built-in type declarations

0.0.4-beta • Public • Published

npm version npm downloads paypal donate

nCore API Wrapper

⚠️ Warning This package is still in beta (v0)! Until the full release most things can and probably will change so, don't build full apps around it yet!

nCore API Wrapper is a library that makes it easy to communicate with nCore including searching, downloading torrents and much more.

Features

  • Beginner friendly 🚀
  • Custom types 🔎
  • Downloading torrents 📩
  • Customizable useragent, cookies, etc... 🤖
  • v1 and v2 API 🌎
  • CommonJS and Module support 📦
  • And much more! 🧪

Documentation 📚

In progress...

Installation ⌨️

npm

To install nCore API Wrapper, simply run the following command:

npm install ncore-api-wrapper

Usage ❓

This is a simple overview of how to set up this library with all the options. Docs coming soon...

const nCore = require("ncore-api-wrapper");
const client = new nCore.Client({
    cookies: new nCore.CookieManager().addCookiesFromString("Your Cookies"), //Log in with cookies
});

client.on("ready", async () => {
    const torrent = await client.getTorrent(1490740);
    console.log(torrent.title); //Le.fabuleux.destin.d.Amelie.Poulain.2001.1080p.BluRay.DD5.1.x264.HuN-LiLBOX
    const output = require("fs")
        .createWriteStream("Amelie csodálatos élete.torrent")(await torrent.download())
        .pipe(output); //Download torrent
});

client.login(username, password); //Log in with username & password

Plans 📝

  • [x] Torrent page parsing to JSON
  • [x] Custom URL Query Manager
  • [x] Custom Cookie Manager
  • [x] Cookie Login
  • [x] Communicating with /ajax.php
  • [x] Ajax response parsing to JSON
  • [x] Torrent downloading
  • [ ] v2 Search System
  • [ ] v1 Search System
  • [ ] User class instead of string usernames

Credits 🔎

/ncore-api-wrapper/

    Package Sidebar

    Install

    npm i ncore-api-wrapper

    Weekly Downloads

    1

    Version

    0.0.4-beta

    License

    MIT

    Unpacked Size

    217 kB

    Total Files

    75

    Last publish

    Collaborators

    • bajekek