Skip to content

colacadstink/LorcanaAPI.js

Repository files navigation

npm version

LorcanaAPI.js

JavaScript / TypeScript client for https://lorcana-api.com/

Usage

While this is still in v0, the most up-to-date usages will be in LorcanaAPI.test.ts. But here's a couple examples that should be relatively stable:

import {LorcanaAPI} from "lorcana-api";

const api = new LorcanaAPI();

const allCards = await api.getCardsList();

const arielOnHumanLegs = await api.getCardByIDs(1, 1);

const someRandomCards = await api.getCardsByIDs([
  {setNum: 1, cardNum: 1},
  {setNum: 1, cardNum: 3},
  {setNum: 2, cardNum: 5},
  {setNum: 2, cardNum: 9},
]);

About

JavaScript / TypeScript client for https://lorcana-api.com/

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published