Node.JS 2ch.hk API Wrapper
To install you simply need execute:
$ npm install dvach.js
Or this command, if you prefer Yarn
$ yarn add dvach.js
const DvachApi = require("dvach.js");
DvachApi.getBoard("b")
.then((threads) => {
console.log(threads);
})
.catch((err) => {
// error processing
});
-
getBoard(board)
-
getThread(board, threadNum)
-
getPage(board, pageNumber)
-
getTop(board, sortMethod, numOfThreads)
To run the test suites, type in your terminal
$ npm run test
Open for pull requests!