# node-mcleaks

> An unofficial node wrapper for the official MCLeaks API

Latest version **1.0.3** (published 2017-07-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install node-mcleaks
pnpm add node-mcleaks
yarn add node-mcleaks
bun add node-mcleaks
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2017-07-14 |
| First published | 2017-07-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | NaniTanuki |
| Maintainers | nanitanuki |
| Keywords | minecraft, mcleaks, authentication |

## Links

- npm: https://www.npmjs.com/package/node-mcleaks
- Repository: https://github.com/NaniTanuki/node-mcleaks
- Homepage: https://github.com/NaniTanuki/node-mcleaks#readme
- Issues: https://github.com/NaniTanuki/node-mcleaks/issues
- npm.io page: https://npm.io/package/node-mcleaks

## Dependencies (2)

- [crypto](https://npm.io/package/crypto.md) 0.0.3
- [request](https://npm.io/package/request.md) ^2.81.0

## Alternatives

- [@clerk/clerk-expo](https://npm.io/package/@clerk/clerk-expo.md) — 133.6K weekly downloads
- [@pothos/plugin-authz](https://npm.io/package/@pothos/plugin-authz.md) — 12.4K weekly downloads
- [@bounded-sh/client](https://npm.io/package/@bounded-sh/client.md) — 3.2K weekly downloads
- [@luigi-project/plugin-auth-oauth2](https://npm.io/package/@luigi-project/plugin-auth-oauth2.md) — 2.3K weekly downloads
- [@nocobase/plugin-verification](https://npm.io/package/@nocobase/plugin-verification.md) — 2.0K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2017-07-14
- 1.0.0 — 2017-07-14

## README

# node-mcleaks

An unofficial node wrapper for the official [MCLeaks](https://mcleaks.net/) API

### Basic Usage:
```javascript
const mcleaks = require('node-mcleaks')

// Redeem a token:
mcleaks.redeem({
	token: 'GFUGuKqxCDHjdNAz' // get the token from mcleaks
}, (err, data) => {
	if(err) throw err
    let accdata = data.result // Tokens expire after 15 minutes so save the session somehow
    console.log(`Redeemed ${accdata.mcname}`)
    
    // Join a server:
    mcleaks.join({
        session: accdata.session, 
        mcname: accdata.mcname,
        server: 'mc.hypixel.net:25565',
        serverhash: '-1ja8s98dhj92h9aasd8'
        // Or if the serverhash is not specified it can be calculated automatically by specifying
        // serverid: '',
        // sharedsecret: '',
        // serverkey: ''
        // obviously you would need to obtain these values by other means
    }, (err, data) => {
        if(err) throw err
        console.log('Successfully joined server')
    })
})

```

---
_Source: https://npm.io/package/node-mcleaks · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
