Skip to content

HyPixelic/constants

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HyPixelic/constants

A monorepo containing a collection of Hypixel Constants used by other HyPixelic Packages.

✨ Quick Start

npm » npx jsr add @hypixelic/constants
pnpm » pnpm dlx jsr add @hypixelic/constants
bun » bunx jsr add @hypixelic/constants

import Constants from "@hypixelic/constants";

const constants = new Constants(["GAMES"]);
await constants.init();
/* Optionally set an interval to automatically update the constants every 24 hours */
await constants.setInterval("daily");

const games = constants.GAMES;

npm » npx jsr add @hypixelic/static-constants
pnpm » pnpm dlx jsr add @hypixelic/static-constants
bun » bunx jsr add @hypixelic/static-constants

import Constants from "@hypixelic/static-constants";

const constants = new Constants(["GAMES"]);

const games = constants.GAMES;

📦 Packages

  • @hypixelic/constants - Live Hypixel constants fetched from Hypixel resource endpoints.
  • @hypixelic/static-constants - Static snapshot of constants for offline or more reliable use.

📁 Repository Structure

  • packages/live/ » @hypixelic/constants
  • packages/static/ » @hypixelic/static-constants
  • scripts/ — Scripts for updating the static constants

Note

This project is not affiliated with or endorsed by Hypixel, Inc.

About

Collection of Hypixel Constants used by other HyPixelic Packages.

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Contributors