Skip to content

Files

Latest commit

69b00d6 · Nov 9, 2023

History

History
This branch is 416 commits behind GitbookIO/integrations:main.

@gitbook/api

Javascript (Browser and Node) API client for the GitBook API.

Installation

npm install @gitbook/api

Usage

import { GitBookAPI } from '@gitbook/api';

const gitbook = new GitBookAPI({
    authToken: 'gb_abc,
});

const { data } = await gitbook..spaces.getSpaceById('abc');