Fully typed TypeScript API client for the GTR API.
Up-to-date with v0.16.2
of the GTR API.
<script type="module">
import { getRecords } from 'https://esm.run/@zeepkist/gtr-api'
async function displayRecords() {
const records = await getRecords({
BestOnly: true
})
console.log(records) // { totalAmount: 700, records: [{ ... }] }
}
displayRecords()
</script>
import { getRecords } from 'https://esm.run/@zeepkist/gtr-api'
const records = await getRecords({
BestOnly: true
})
console.log(records) // { totalAmount: 700, records: [{ ... }] }
yarn add @zeepkist/gtr-api
# or with npm:
npm install @zeepkist/gtr-api
import { getRecords } from '@zeepkist/gtr-api'
const records = await getRecords({
BestOnly: true
})
console.log(records) // { totalAmount: 700, records: [{ ... }] }
To see all available exports and options, see the package documentation.
yarn
yarn dlx @yarnpkg/sdks vscode
yarn dev
yarn build
yarn test
yarn coverage
Lint with ESLint
yarn lint