Liam
f7a3bb00a5
All checks were successful
Deploy App / docker (ubuntu-latest) (push) Successful in 2m8s
28 lines
605 B
Markdown
28 lines
605 B
Markdown
---
|
|
title: Javascript Library
|
|
summary: The Javascript library for Minecraft Utilities is a simple way to interact with the API using Javascript!
|
|
---
|
|
|
|
# Javascript Library
|
|
|
|
This is the Javascript library for Minecraft Utilities.
|
|
|
|
## Installation
|
|
|
|
To use the Javascript library, you can run the following command:
|
|
|
|
```bash
|
|
npm install mcutils-library
|
|
```
|
|
|
|
## Usage
|
|
|
|
This is a simple example of how to use the Javascript library to get a player's information.
|
|
|
|
```javascript
|
|
import { getPlayer, CachedPlayer } from "mcutils-library";
|
|
|
|
const cachedPlayer = await getPlayer(playerId);
|
|
|
|
console.log(player);
|
|
``` |