npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

gmd.js

v1.0.0

Published

An NPM module to dynamically surf the Geometry Dash API.

Downloads

11

Readme

gmd.js (Geometry Dash API Wrapper)

An NPM module to dynamically surf the Geometry Dash API.


Installation

# Using NPM
npm install gmd.js

# Using Yarn
yarn add gmd.js

Importing Module

// Using Node.js
const gd = require("gmd.js");

// Using React.js
import "gmd.js";

Functions

getLevel:

Description: Returns information about a level.

Parameters:

  • id - The ID of the level.

Example Code:

const gd = require("gmd.js"); // Require module

gd.getLevel(10565740).then((res) => {
  console.log(res.body);
}); // Pass level ID for Bloodbath and log returned information to the console.

getProfileByName:

Description: Returns information about a user profile.

Parameters:

  • name - The username for the profile.

Example Code:

const gd = require("gmd.js"); // Require module

gd.getProfileByName("Riot").then((res) => {
  console.log(res.body);
}); // Pass username "Riot" and log returned information to the console.

getProfileByAccountID:

Description: Returns information about a user profile.

Parameters:

  • id - The account ID for the profile.

Example Code:

const gd = require("gmd.js"); // Require module

gd.getProfileByAccountID(37415).then((res) => {
  console.log(res.body);
}); // Pass account ID for Riot and log returned information to the console.

searchForLevelByName:

Description: Returns information about a level.

Parameters:

  • name - The name of the level.

Example Code:

const gd = require("gmd.js"); // Require module

gd.searchForLevelByName("Bloodbath").then((res) => {
  console.log(res.body);
});

getLeaderboard:

Description: Returns an accurate Geometry Dash leaderboard.

Parameters:

  • None

Example Code:

const gd = require("gmd.js"); // Require module

gd.getLeaderboard().then((res) => {
  console.log(res.body);
});

getLevelLeaderboard:

Description: Returns the leaderboard for a specific level.

Parameters:

  • id - The ID of the level.

Example Code:

const gd = require("gmd.js"); // Require module

gd.getLevelLeaderboard(10565740).then((res) => {
  console.log(res.body);
}); // Pass level ID for Bloodbath and log returned information to the console.

getMapPacks:

Description: Returns information about the map pack levels.

Parameters:

  • None

Example Code:

const gd = require("gmd.js"); // Require module

gd.getMapPacks().then((res) => {
  console.log(res.body);
}); // Log map pack information to the console.

getGauntlets:

Description: Returns information about the gauntlet levels.

Parameters:

  • None

Example Code:

const gd = require("gmd.js"); // Require module

gd.getGauntlets().then((res) => {
  console.log(res.body);
}); // Log gauntlet information to the console.

getTopComments:

Description: Return the top comments on a level.

Parameters:

  • id - The level ID.

Example Code:

const gd = require("gmd.js"); // Require module.

gd.getTopComments(10565740).then((res) => {
  console.log(res.body);
}); // Pass Level ID for Bloodbath and log returned information to the console.

getCube:

Description: Returns a PNG image with the user's cube.

Parameters:

  • name - The name of the user to get information from.

Example Code:

const gd = require("gmd.js"); // Require module.

gd.getCube("Riot").then((res) => {
  console.log(res.body);
}); // Pass user Riot and log returned information to the console

getShip:

Description: Returns a PNG image with the user's ship.

Parameters:

  • name - The name of the user to get information from.

Example Code:

const gd = require("gmd.js"); // Require module.

gd.getShip("Riot").then((res) => {
  console.log(res.body);
}); // Pass user Riot and log returned information to the console

getBall:

Description: Returns a PNG image with the user's ball.

Parameters:

  • name - The name of the user to get information from.

Example Code:

const gd = require("gmd.js"); // Require module.

gd.getBall("Riot").then((res) => {
  console.log(res.body);
}); // Pass user Riot and log returned information to the console

getUFO:

Description: Returns a PNG image with the user's UFO.

Parameters:

  • name - The name of the user to get information from.

Example Code:

const gd = require("gmd.js"); // Require module.

gd.getUFO("Riot").then((res) => {
  console.log(res.body);
}); // Pass user Riot and log returned information to the console

getWave:

Description: Returns a PNG image with the user's wave.

Parameters:

  • name - The name of the user to get information from.

Example Code:

const gd = require("gmd.js"); // Require module.

gd.getWave("Riot").then((res) => {
  console.log(res.body);
}); // Pass user Riot and log returned information to the console

getRobot:

Description: Returns a PNG image with the user's robot.

Parameters:

  • name - The name of the user to get information from.

Example Code:

const gd = require("gmd.js"); // Require module.

gd.getRobot("Riot").then((res) => {
  console.log(res.body);
}); // Pass user Riot and log returned information to the console

getSpider:

Description: Returns a PNG image with the user's spider.

Parameters:

  • name - The name of the user to get information from.

Example Code:

const gd = require("gmd.js"); // Require module.

gd.getSpider("Riot").then((res) => {
  console.log(res.body);
}); // Pass user Riot and log returned information to the console

getSwing:

Description: Returns a PNG image with the user's swingcopter.

Parameters:

  • name - The name of the user to get information from.

Example Code:

const gd = require("gmd.js"); // Require module.

gd.getSwing("Riot").then((res) => {
  console.log(res.body);
}); // Pass user Riot and log returned information to the console

Contact:

  • Discord: LilJuiceBox491#3256
  • Scratch: LilJuiceBox491
  • YouTube: LilJuiceBox491
  • GitHub: LilJuiceBox491