A complete, asynchronous Javascript SDK for the Laravel Forge API
With yarn (recommended):
yarn add @geoffcodesthings/forge-js
With npm:
npm install @geoffcodesthings/forge-js
import Forge from '@geoffcodesthings/forge-js';
// Instantiate the SDK
const forge = new Forge('API_TOKEN_HERE');
// List all servers
try {
const servers = await forge.servers.list();
console.log(servers);
} catch (error) {
console.log(error);
}
Full documentation can be found here.
This project is open-sourced software licensed under the MIT license.