npm.io
0.2.0 • Published 1 year ago

minefort

Licence
MIT
Version
0.2.0
Deps
0
Size
19 kB
Vulns
0
Weekly
0

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.

License

MIT

Contributors

Keywords