Get a book cover from a 9, 10, or 13 digit ISBN. Works with AMD, CommonJS, Node, and browser globals.
CoffeeScript JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
Gruntfile.coffee
LICENSE.md
README.md
isbn-cover.coffee
isbn-cover.js
isbn-cover.min.js
package.json

README.md

isbn-cover

Get a book cover from a 9, 10, or 13 digit ISBN. Works with AMD, CommonJS, Node, and browser globals.

usage (browser)

cover = window['isbn-cover'] // or use AMD `require`
isbn = 440234816

cover(isbn, function(img) {
	// `img` is an element, so:
	document.body.appendChild(img);
}, function (error) {
	...
});

usage (node)

cover = require('isbn-cover')
isbn = 440234816

cover(isbn, function(img) {
	// `img` is a data string
}, function (error) {
	...
});