minefort
v0.1.2
Published
TypeScript library for the Minefort API
Downloads
7
Maintainers
Readme
Minefort
A TypeScript wrapper for the Minefort HTTP API
Installation
Install minefort with NPM
npm install minefort
Features
- Get a list of online Minefort servers
- Get a list of blog articles
Basic Usage
const minefort = new Minefort();
async function main() {
const minefort = new Minefort();
const servers = await minefort.servers.getOnlineServers({
limit: 10,
});
console.log(servers);
const articles = await minefort.blog.getArticles();
console.log(articles.reduce((acc, article) => acc + article.readingTime, 0));
}
main();
For more examples, visit example.ts.
Contributing
Contributions are always welcome!
See contributing.md
for ways to get started.