5.0.0 • Published 11 months ago

minefort v5.0.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
11 months ago

Table of Contents

Notice of Non-Affiliation and Disclaimer

We are not affiliated, associated, authorized, endorsed by, or in any way officially connected with Minefort.com, or any of its subsidiaries or its affiliates. The official Minefort.com website can be found at https://minefort.com/.

Affiliate link

You can support this open source project by using the following affiliate link.

Installation

You can use any package manager you want, but we recommend using yarn.

npm install minefort
yarn add minefort
pnpm add minefort

Loading the module

ES Modules (ESM)

import { Client } from "minefort";

CommonJS

const { Client } = require("minefort");

Example usage

Simple example to get all of your servers

Create and authenticate a client, and get all of your servers.

const { Client } = require("minefort");

const client = new Client();

(async () => {
  await client.auth("username", "password");
  /**
   * Note:
   * You can also just use your session token to authenticate
   * like this: `client.sessionToken = "sessionToken";`
   */

  const servers = await client.servers.getMyServers();
  console.log(servers);
})();

Avoiding conflicts

Importing another module with the same name will cause conflicts (eg. discord.js). This can simply be avoided by renaming the import.

import { Client as Minefort } from "minefort";
// Using CommonJS: "const { Client: Minefort } = require("minefort")"
import { Client } from "discord.js";

// minefort client
const minefort = new Minefort();

// discord.js client
const client = new Client();

TypeScript

Types are bundled with minefort, so you do not need to install any additional packages.

Team

Mullp
Mullp
5.0.0

11 months ago

4.1.0

11 months ago

4.0.0

11 months ago

4.2.0

11 months ago

3.2.9

1 year ago

3.2.8

1 year ago

3.2.7

1 year ago

3.2.6

1 year ago

3.2.5

1 year ago

3.2.3

1 year ago

3.2.2

1 year ago

3.2.1

1 year ago

3.2.0

1 year ago

3.1.2

1 year ago

3.1.1

1 year ago

3.1.0

1 year ago

3.0.1

1 year ago

3.0.0

1 year ago

2.1.1

1 year ago

2.1.0

1 year ago

2.0.3

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.0.0

1 year ago

0.0.0

1 year ago