Use the getBook
function to get a Book
.
Example:
const instaplot = require("instaplot");
(async () => {
const book = await instaplot.getBook("the magic of thinking big");
console.log(book)
})();
A Book
object has these attributes from Google Books API
id
title
authors
description
publisher
publishedDate
thumbnailURL
totalItems
The getBook
function currently takes only one argument name
.