Client library
Install and use GitBook's official Node.js client library
Overview
Installation
npm install @gitbook/apiInitialize the client
import { GitBookAPI } from '@gitbook/api';
const client = new GitBookAPI({
authToken: <your_access_token>
});Usage with Node.js
import { GitBookAPI } from '@gitbook/api';
import fetch from 'node-fetch';
const client = new GitBookAPI({
customFetch: fetch
});Last updated
Was this helpful?