@gw2api/fetch
TypeScript icon, indicating that this package has built-in type declarations

0.0.8 • Public • Published

@gw2api/fetch

This package provides a tiny wrapper around native fetch to call the Guild Wars 2 API that returns typesafe responses.

Usage

import { fetchGw2Api } from '@gw2api/fetch';

const item = await fetchGw2Api('/v2/items/1234');
// -> { id: number, name: string, ... }

Installation

npm i @gw2api/fetch

Contributing

See parent readme.

License

Licensed under the MIT License.

Readme

Keywords

Package Sidebar

Install

npm i @gw2api/fetch

Weekly Downloads

296

Version

0.0.8

License

MIT

Unpacked Size

6.74 kB

Total Files

8

Last publish

Collaborators

  • darthmaim