Modern ES6+ API client for Gerstlix.com
# NPM
npm i gerstlix
# YARN
yarn add gerstlix
# PNPM
pnpm add gerstlix
// ESModule
import { Gerstlix } from 'gerstlix';
// CommonJS
const { Gerstlix } = require('gerstlix');
const client = new Gerstlix({ token: 'YOUR_API_TOKEN' });
client.getInfo(1)
.then(response => {
console.log(response);
})
.catch(err => {
console.error(err.message);
});
📚 Docs |
---|