goodreads-bookshelf
v0.2.0
Published
Facade of Goodreads Bookshelf
Downloads
18
Readme
Goodreads Bookshelf
Install
npm i goodreads-bookshelf
Usage
You will need to provide your own Goodreads API developer ID and key.
import { GoodreadsBookshelf, Book, Shelf } from "goodreads-bookshelf";
const myBookshelf: GoodreadsBookshelf =
new GoodreadsBookshelf("Goodread Id", "Goodreads Key");
await myBookshelf.getBooks();
const myReadingBooks: Book[] = myBookshelf.readingBooks();
const myReadBooks: Book[] = myBookshelf.readBooks();
const groupedByYear: { [key: number]: Book[] } = myBookshelf.readBooksGroupedByYear();