Socket
Socket
Sign inDemoInstall

drakor-id-wrapper

Package Overview
Dependencies
9
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    drakor-id-wrapper

A simpe API Wrapper for DrakorID


Version published
Maintainers
1
Created

Readme

Source

DrakorID Wrapper

A simpe API Wrapper for DrakorID

Note

This package is only use ECMAScript 6 or higher

Installation

yarn add github:xct007/drakor-api-wrapper

Usage

// drakor-id-wrapper
import { latest, search, getCategory, getChannel, detail } from "src/index.js";

// Get latest drakor
const latestDrakor = await latest();

// Search drakor
const searchDrakor = await search("drakor");

// Get category by category_id / cid
const opts = {
  page: 1,
  count: 10,
};
const category = await getCategory(1123, opts);

// Get channel by channel_id / chid
const opts = {
  page: 1,
  count: 10,
};
const channel = await getChannel(1234, opts);

// alternative way for getChannel/getCategory
const c_ch_id = 1234;
const data = await detail(c_ch_id);

Test

yarn test

License

MIT

Keywords

FAQs

Last updated on 11 Sep 2023

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc