minefort
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

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

/minefort/

    Package Sidebar

    Install

    npm i minefort

    Weekly Downloads

    3

    Version

    0.2.0

    License

    MIT

    Unpacked Size

    19.8 kB

    Total Files

    23

    Last publish

    Collaborators

    • tarna256