Socket
Socket
Sign inDemoInstall

mcapi

Package Overview
Dependencies
7
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    mcapi

An unofficial Node.js library for fetching data from Mojang


Version published
Weekly downloads
14
Maintainers
1
Install size
519 kB
Created
Weekly downloads
 

Readme

Source

mcapi

An unofficial Node.js library for fetching data from Mojang

Get user data, translate usernames <-> UUID's, get username history and more with promises.

Install

To install mcapi simply run

    npm install -s mcapi

Usage

First import the library using:

    const mcapi = require('mcapi');

To get the corresponding UUID of a username simply type:

    let uuid = await mcapi.usernameToUUID("Deftware");

oAuth

This library also supports MC-oAuth, to use oAuth simply type:

    let uuid = await mcapi.oAuthToUUID("<6 digit oauth code>");

You get the 6 digit oauth code from joining srv.mc-oauth.net with your Minecraft client.

Keywords

FAQs

Last updated on 01 Jun 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc