About
zoblox.js
is a convenient npm library that simplifies the usage of the Roblox API, making it easier for developers to interact with Roblox in their Node.js projects.
Features
- Simplified and streamlined integration of the Roblox API
- Easy authentication and login process
- Access to various Roblox API endpoints and functionalities
Installation
To use zoblox.js in your Node.js project, you can install it via npm:
npm init
npm install zoblox.js
Import Files
Here's an example of import zoblox.js in your project:
const { Zoblox } = require('zoblox.js');
// If you are using ES6 modules, follow the following code:
import { Zoblox } from 'zoblox.js';
Usage
Here's an example of how to log in and retrieve the username and ID using zoblox.js:
const zoblox = new Zoblox();
zoblox.on('userReady', () => console.log(`Logged in as: ${zoblox.me.username} (${zoblox.me.id})`));
(async () => {
await zoblox.login(COOKIE); // Replace COOKIE with your RobloxSecurity
})();
Links
Contributing
Contributions are welcome! If you encounter any issues or have suggestions for improvements, please feel free to submit a pull request or open an issue on the GitHub Repository.
Help
If you don't understand something in the documentation, you are experiencing problems, or you just need a gentle nudge in the right direction, please don't hesitate to join our official zoblox.js Server.