mcdata-js

1.0.0 • Public • Published

mcdata-js

A package for JS that allows people to retrieve MC data

Usage

A UUID is required to use other functions like mcdata.profile, and mcdata.nameHistory. Example of getting a uuid from a username:

const mcdata = require("mcdata-js");
mcdata.nameToUuid("AEJester", function (error, result) {
  if (err) {
    console.log(error)
  } else {
    console.log(result[0].id);
  }
});

An example of getting namehistory:

const mcdata = require("mcdata-js");
mcdata.getNameHistory("uuidHere", function(error, result) {
  console.log(result);
});

An Example of getting the skin and cape:

const mcdata = require("mcdata-js");
mcdata.getSkin("username", function(error, result) {
  console.log(result);
});
mcdata.getCape("username", function(error, result) {
  console.log(result);
});

Example of the user object:

const mcdata = require("mcdata-js");
var me = mcdata.User().name("username").uuid();
console.log(me.name+" "+me.uuid+" "+me.profile);

Notes

Please note that this Package is WIP, and changes will be made in the future.

Our Team

Member Role
AEJester CEO/Founder
LittleWhole CTO
RedstoneDaedalus Developer
SiebeDW Human Relations
AwesomeSmilee Project Manager

Package Sidebar

Install

npm i mcdata-js

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • aejester