JSPM

@art-of-coding/esi-browser

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q16773F
  • License MIT

Small module to make unauthented request to Eve Online ESI

Package Exports

  • @art-of-coding/esi-browser

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@art-of-coding/esi-browser) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

ESI-Browser

Small module to make unauthenticated requests to Eve Online's ESI API from the browser.

  • Stores the retrieved result in localStorage
  • Respects the Expires and ETag headers

Install

npm i @art-of-coding/esi-browser

Usage

To request information about a type:

import fetchFromEsi from '@art-of-coding/esi-browser'

const typeId = 36
const data = await fetchFromESI(`/universe/types/${typeId}/`)

console.log(`This item is called ${data.name}`)

License

Copyright 2021 Michiel van der Velde.

This software is licensed under the MIT License.