# venge-io.js

> A lightweight Node.js module for Venge.io private api 🔫

Latest version **1.1.1** (published 2022-05-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install venge-io.js
pnpm add venge-io.js
yarn add venge-io.js
bun add venge-io.js
```

## 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.1.1 |
| Published | 2022-05-07 |
| First published | 2022-01-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 25.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | PADO |
| Maintainers | pado |
| Keywords | venge, venge.io |

## Links

- npm: https://www.npmjs.com/package/venge-io.js
- Repository: https://github.com/47PADO47/Venge-io.js
- Homepage: https://github.com/47PADO47/Venge-io.js#readme
- Issues: https://github.com/47PADO47/Venge-io.js/issues
- npm.io page: https://npm.io/package/venge-io.js

## Dependencies (1)

- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.7

## Recent versions

- 1.1.1 (latest) — 2022-05-07
- 1.1.0 — 2022-05-07
- 1.0.0 — 2022-01-25

## README

# Venge-io.js
A lightweight Node.js module for Venge.io private api 🔫

## Warning ⚠
venge.io devs recently changed their login mechanism and now it also requires the grecaptcha token.
Therefore, I suggest logging in via hash.

## Table Of Contents
  - [Installation](#installation)
  - [Example](#example)

## Installation

```sh
    npm install venge-io.js
```

## Example

```javascript
    const { Venge } = require('venge-io.js');

    const venge = new Venge('USERNAME', 'PASSWORD', 'GRECAPTCHA_TOKEN');
    // Constructor variables are optional.

    (async () => {
        await venge.login('USERNAME', 'PASSWORD', 'GRECAPTCHA_TOKEN');
        // Variables are optional if already specified in constructor.

        // or you can login via hash
        venge.setHash('HASH');

        venge.getStatus()
        .then(data => {
            console.log(`There are ${data.online} players online`);
        });

        const balance = await venge.getCoinDetails();
        console.log(`Your balance is ${balance.balance}`);

        setTimeout(() => {
            venge.logout();
            process.exit();
        }, 3500);
    })();
```

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