@vforsh/rmatic-client
v0.2.0
Published
Node-only TypeScript client for the Release-o-matic API.
Readme
@vforsh/rmatic-client
Node-only TypeScript client for the Release-o-matic API.
Install
npm install @vforsh/rmatic-clientUsage
import { createClient } from '@vforsh/rmatic-client'
const rmatic = createClient({
baseUrl: 'https://release-o-matic.example.com',
token: process.env.RMATIC_TOKEN,
})
const health = await rmatic.health()
const releases = await rmatic.releases.list({ game: 'papa-cherry-2', platform: 'vk' })
const pre = await rmatic.preDeploy({ game: 'papa-cherry-2', env: 'staging', version: 42 })Configuration
baseUrl(required)token(optional bearer token)timeoutMs(optional, default 30s)fetch(optional override for testing)
