@jsjoeio/lotr-sdk
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

@jsjoeio/lotr-sdk - an SDK to easily consume the Lord of the Rings API

npm

Install

yarn add @jsjoeio/lotr-sdk
npm install @jsjoeio/lotr-sdk

Usage

import LotrSDK from "@jsjoeio/lotr-sdk";

const apiToken = process.env.LOTR_API_TOKEN
const sdk = new LotrSDK(apiToken)

sdk.getMovies() // returns array of movies
sdk.getMovieById(id)  // returns movie
sdk.getMovieQuote(id) // returns array of quotes from movie

LICENSE

MIT. Just make sure you give acknowledgements to this repo.

Readme

Keywords

Package Sidebar

Install

npm i @jsjoeio/lotr-sdk

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

22.3 kB

Total Files

15

Last publish

Collaborators

  • jsjoeio