https://github.com/9de/minecraft-usernames-to-uuid
project fetches UUIDs for a list of Minecraft usernames using the PlayerDB API
https://github.com/9de/minecraft-usernames-to-uuid
Last synced: 4 days ago
JSON representation
project fetches UUIDs for a list of Minecraft usernames using the PlayerDB API
- Host: GitHub
- URL: https://github.com/9de/minecraft-usernames-to-uuid
- Owner: 9de
- License: mit
- Created: 2025-03-02T18:16:31.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-02T18:19:04.000Z (over 1 year ago)
- Last Synced: 2026-04-27T11:33:55.771Z (about 2 months ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Minecraft Username to UUID Fetcher
## Description
This project fetches UUIDs for a list of Minecraft usernames using the PlayerDB API and saves them to a file. It processes usernames asynchronously, handles errors gracefully, and optimizes file operations for efficiency.
## Features
- Reads Minecraft usernames from `usernames.txt`.
- Fetches UUIDs using the PlayerDB API.
- Saves UUIDs to `uuids.txt`.
- Handles errors and invalid usernames gracefully.
- Uses asynchronous operations for better performance.
## Installation
1. Clone the repository:
```sh
git clone https://github.com/9de/Minecraft-usernames-to-uuid.git
cd minecraft-uuid-fetcher
```
2. Install dependencies:
```sh
npm install
```
## Usage
1. Add Minecraft usernames (one per line) to `usernames.txt`.
2. Run the script:
```sh
node index.js
```
3. The UUIDs will be saved in `uuids.txt`.
## Dependencies
- Node.js
- `fs` (built-in Node.js module)
- `./utils/playerdbapi.js` (custom API wrapper for PlayerDB)
## License
This project is open-source and available under the MIT License.