# node-thealtening

> An unofficial node wrapper for thealtening's API

Latest version **1.0.4** (published 2021-01-06) · MIT license · 0 weekly downloads

## Install

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

## 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.4 |
| Published | 2021-01-06 |
| First published | 2021-01-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.9 KB |
| Known vulnerabilities | 0 (+23 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | pandapip1 |
| Maintainers | pandapip1 |
| Keywords | minecraft, thealtening, authentication |

## Links

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

## Dependencies (1)

- [axios](https://npm.io/package/axios.md) ^0.21.1

## Recent versions

- 1.0.4 (latest) — 2021-01-06
- 1.0.3 — 2021-01-06
- 1.0.2 — 2021-01-06
- 1.0.1 — 2021-01-05
- 1.0.0 — 2021-01-05

## README

# node-thealtening

An unofficial node wrapper for the altening's API

### Basic Usage:
```javascript
const thealtening = require('node-thealtening');

(async () => {
  // Redeem a token
  var data = await thealtening.redeem({
    token: 'p3pdx-ial5f@alt.com' // token recieved from TheAltening
  })
  console.log(data)
  if (!data.success){
    console.error("Redeeming unsuccessful");
    return;
  }
  console.log(`Redeemed account`)  
  // Join a server:
  var data2 = await thealtening.join({
    accessToken: data.accessToken, 
    uuid: data.uuid,
    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
  })
  console.log(data2)
  if (data2.success){
    console.log("Ready for connection!")
  }
})()

```

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