An object-oriented TypeScript library for spacetraders API.
creating an account then logging in
import { Client } from 'spacetraders.ts';
const client = new Client();
client.createAccount('username').then((newUser) => {
client.login(newUser.token);
});
client.on('ready', () => {
console.log(`Logged in as ${client.username}`);
});
The library is still in development and is not yet ready for production use. Contributions and stars are welcome and if you really like the project, support me on Patreon