update readme
This commit is contained in:
parent
eb0facd38e
commit
782b63b9e1
20
README.md
20
README.md
@ -1,2 +1,20 @@
|
|||||||
# Javascript-Library
|
# Minecraft Utilities - Javascript Library
|
||||||
|
|
||||||
|
The JavaScript library for the Minecraft Utilities API.
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
Install the package using npm:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm install mcutils-library
|
||||||
|
```
|
||||||
|
|
||||||
|
Fetch data from a player:
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
import mcUtils from "mcutils-library";
|
||||||
|
|
||||||
|
const { player } = await mcUtils.getPlayer("Notch");
|
||||||
|
console.log(player);
|
||||||
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user