dvach.js
v0.0.5
Published
A Node.js module that wraps 2ch.hk api
Downloads
7
Maintainers
Readme
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!