Skip to content

anonim-legivon/dvach.js

Repository files navigation

Build Status Coverage Status GitHub issues GitHub stars npm downloads npm version

dvach.js

Node.JS 2ch.hk API Wrapper

Installation

To install you simply need execute:

$ npm install dvach.js

Or this command, if you prefer Yarn

$ yarn add dvach.js

Example usage

const DvachApi = require("dvach.js");

DvachApi.getBoard("b")
  .then((threads) => {
    console.log(threads);
  })
  .catch((err) => {
    // error processing
  });

Available methods

  • getBoard(board)

  • getThread(board, threadNum)

  • getPage(board, pageNumber)

  • getTop(board, sortMethod, numOfThreads)

Running the tests

To run the test suites, type in your terminal

$ npm run test

Contributing

Open for pull requests!

Authors

About

An 2ch.hk api wrapper for Node.js

Resources

License

Stars

Watchers

Forks

Packages

No packages published