Package, engines & module formats
Package name
The published npm package is gstable-js.
npm install gstable-js
pnpm add gstable-js
yarn add gstable-js
Engines
package.jsondeclares"node": ">=18.0.0".- The implementation relies on global
fetch(stable in Node 18+).
ESM and CommonJS
ESM example
import { GStableClient, DEFAULT_BASE_URL } from 'gstable-js';
CommonJS example
const { GStableClient } = require('gstable-js');
TypeScript
Type definitions ship with the package. Import types from the root entry when modeling payloads:
import type { Product, CreatePaymentLinkBody } from 'gstable-js';
CI and reproducible installs
- Commit
package-lock.json(npm),pnpm-lock.yaml, oryarn.lockso CI uses the same SDK version. - Run
npm ls gstable-jsto confirm the resolved version in your app.
Next
- Client configuration —
apiKey, base URLs,fetchImpl, debug flag.