update readme

This commit is contained in:
Lee 2024-04-14 21:14:42 +01:00
parent eb0facd38e
commit 782b63b9e1

@ -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);
```