# gd-browser-api

> Get info from GDBrowser's API in a simple way.

Latest version **1.0.1** (published 2021-12-10) · ISC license · 0 weekly downloads

## Install

```sh
npm install gd-browser-api
pnpm add gd-browser-api
yarn add gd-browser-api
bun add gd-browser-api
```

## 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.1 |
| Published | 2021-12-10 |
| First published | 2021-12-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.1 KB |
| Known vulnerabilities | 0 (+23 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 3 |
| Author | JustSofter |
| Maintainers | justsofter |
| Keywords | geometry, dash, gd, gdbrowser |

## Links

- npm: https://www.npmjs.com/package/gd-browser-api
- Repository: https://github.com/justsofter/gdbrowserapi
- Homepage: https://github.com/justsofter/gdbrowserapi#readme
- Issues: https://github.com/justsofter/gdbrowserapi/issues
- npm.io page: https://npm.io/package/gd-browser-api

## Dependencies (1)

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

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2021-12-10
- 1.0.0 — 2021-12-10

## README

# GDBrowserAPI

This NPM gets info from the GD Colon's GD Browser API.

## Functions

**getProfile(user)**

With this function, you can get an users profile info.
```
const { getProfile } = require('gd-browser-api')
GDBrowserAPI.getProfile("RobTop").then(res => {
    console.log(res)
})
```

Returns:

```
{
  username: 'RobTop',
  playerID: '16',
  accountID: '71',
  rank: 240313,
  stars: 42,
  diamonds: 23,
  coins: 1,
  userCoins: 1,
  demons: 0,
  ball: 17,
  ufo: 26,
  wave: 34,
  robot: 22,
  spider: 15,
  col1: 3,
  col2: 11,
  deathEffect: 3,
  glow: true
}
```

**getLevel(levelid)**

With this function, you can get an level's info.
```
const { getLevel } = require('gd-browser-api')
GDBrowserAPI.getLevel("128").then(res => {
    console.log(res)
})
```

Returns:

```
{
  name: '1st level',
  id: '128',
  description: '(No description provided)',
  author: 'real storm',
  playerID: '30144023',
  accountID: '6338004',
  difficulty: 'Hard',
  downloads: 1208129,
  likes: 130684,
  disliked: false,
  length: 'Medium',
  stars: 0,
  orbs: 0,
  diamonds: 0,
  featured: false,
  epic: false,
  gameVersion: '2.1',
  editorTime: 0,
  totalEditorTime: 0,
  version: 1,
  copiedID: '128',
  twoPlayer: false,
  officialSong: 5,
  customSong: 0,
  coins: 0,
  verifiedCoins: false,
  starsRequested: 2,
  ldm: false,
  objects: 208,
  large: false,
  cp: 0,
  difficultyFace: 'hard',
  songName: 'Base After Base',
  songAuthor: 'DJVI',
  songSize: '0MB',
  songID: 'Level 5'
}
```

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