Node.js SDK
Node.js/TypeScript SDK for API integration
Overview
Node.js/TypeScript SDK for TheGlobalFuel.
NPM Packages
| Environment | Package Name | Visibility |
|---|---|---|
| Alpha | @burdenoff/alpha-theglobalfuel-sdk or @burdenoff/alpha-theglobalfuel-sdk-node | Private |
| Stable | @burdenoff/theglobalfuel-sdk or @burdenoff/theglobalfuel-sdk-node | Public |
Installation
Public (Stable)
npm install @burdenoff/theglobalfuel-sdk
Private (Alpha)
npm login
npm install @burdenoff/alpha-theglobalfuel-sdk
Repository
- GitHub: theglobalfuel-sdk-node
Usage
import { TheGlobalFuelClient } from '@burdenoff/theglobalfuel-sdk';
const client = new TheGlobalFuelClient({
apiKey: process.env.THEGLOBALFUEL_API_KEY
});
Features
- Fully typed TypeScript API
- GraphQL client
- Authentication helpers
- Error handling
See the NPM Package Management guide for more details.