1.0.7 • Published 3 years ago

@frnikho/hypixel-js v1.0.7

Weekly downloads
9
License
ISC
Repository
github
Last release
3 years ago

HypixelJS

HypixelJS is a library build & create with typescript to provide an interface between the Hypixel API and javascript

status

Currently in development also work and can maybe contains errors and missing api methods

Installation

$ npm i @frnikho/hypixel-js

Usage

start to import hypixel-js lib and create a new instance of Hypixel and initialize token

const Hypixel = require('@frnikho/hypixel-js'); // import hypixel-js library

let token = "hypixel token"; //get your api token ingame (/api)

let api = await new Hypixel().initializeToken(token); // initialize Hypixel class with token

now you can use all function from library

api.findUser('5cd4d33f-c897-4d05-b081-708961730358', (user) => { // get user info from hypixel server
        user.isOnline(token, (online) => {
            if (online) {
                console.log("Player is online !");
            } else {
                console.log("Player is not online !");
            }
        })
    });

output

Player is online !

Dependencies

NameLINK
Axioshttps://www.npmjs.com/package/axios

Source

See on Github

1.0.7

3 years ago

1.0.6

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.0

3 years ago