Javascript client library

Getting Started

To make it easy to build your Duffel integration, we offer a JavaScript client library.

Installation

To install the library using your favourite package manager:

Shell (using yarn)

yarn add @duffel/api

Usage

Then import it into your codebase and initialise it with your access token:

JavaScript

import { Duffel } from '@duffel/api'
const duffel = new Duffel({
token: YOUR_ACCESS_TOKEN,
})
View the repository on GitHub and check out the npm package: