Skip to main content

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.json declares "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, or yarn.lock so CI uses the same SDK version.
  • Run npm ls gstable-js to confirm the resolved version in your app.

Next