dvach.js
Version:
A Node.js module that wraps 2ch.hk api
57 lines (34 loc) • 1.35 kB
Markdown
[](https://travis-ci.com/fadedDexofan/dvach.js)
[](https://coveralls.io/github/fadedDexofan/dvach.js?branch=master)
[](https://github.com/fadedDexofan/dvach.js/issues)
[](https://github.com/fadedDexofan/dvach.js/stargazers)
# 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](https://yarnpkg.com/lang/en/)
$ yarn add dvach.js
# Example usage
```javascript
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
- [fadedDexofan](https://github)