Antonio32A / lilyweight

Hypixel SkyBlock Weight Calculator
MIT License
7 stars 7 forks source link

feat: allow getWeightRaw to be accesed staticly #3

Closed nstringham closed 2 years ago

nstringham commented 2 years ago

fix #2

before this PR we had to do

import lilyWeight from "lilyweight";
const lily = lilyWeight("hypixel api key");

const weight = await lily.getWeightRaw(...);

if this PR is merged we will be able to do

import lilyWeight from "lilyweight";

const weight = await lilyWeight.getWeightRaw(...);

or

import { getWeightRaw } from "lilyweight";

const weight = await getWeightRaw(...);