This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@frnikho/hypixel-js

1.0.7 • Public • Published

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

Name LINK
Axios https://www.npmjs.com/package/axios

Source

See on Github

Package Sidebar

Install

npm i @frnikho/hypixel-js

Weekly Downloads

1

Version

1.0.7

License

ISC

Unpacked Size

21.4 kB

Total Files

16

Last publish

Collaborators

  • frnikho