1.0.0 • Published 1 year ago

tlor-sdk v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

tlor-sdk

npm package for connecting to The Lord of The Rings API.

Install

npm i tlor-sdk

Available Functions

  • getBooks()
  • getBook()
  • getMovies()
  • getQuotes()
  • getChapters()

You can specify parameters for pagination optionally.

The optional paramaters are limit(number), page(number), offset(number) and sort(string).

  • getBooks({ limit: 100, page: 1, offset: 10, sort: 'name:desc' })

Usage

import { getBooks, getChapters } from 'tlor-sdk'
const books = await getBooks();
const chapters = await getChapters();