https://github.com/bcherny/isbn-cover
Get a book cover from a 9, 10, or 13 digit ISBN. Works with AMD, CommonJS, Node, and browser globals.
https://github.com/bcherny/isbn-cover
Last synced: about 2 months ago
JSON representation
Get a book cover from a 9, 10, or 13 digit ISBN. Works with AMD, CommonJS, Node, and browser globals.
- Host: GitHub
- URL: https://github.com/bcherny/isbn-cover
- Owner: bcherny
- License: mit
- Created: 2013-11-13T01:17:10.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2013-11-13T06:56:21.000Z (about 12 years ago)
- Last Synced: 2025-04-12T04:31:24.918Z (8 months ago)
- Language: CoffeeScript
- Homepage:
- Size: 78.1 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
isbn-cover
==========
Get a book cover from a 9, 10, or 13 digit ISBN. Works with AMD, CommonJS, Node, and browser globals.
## usage (browser)
```js
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)
```js
cover = require('isbn-cover')
isbn = 440234816
cover(isbn, function(img) {
// `img` is a data string
}, function (error) {
...
});
```