1.2.2 • Published 8 years ago

amalgamatic-ucsflibdbs v1.2.2

Weekly downloads
33
License
MIT
Repository
github
Last release
8 years ago

Build Status

amalgamatic-ucsflibdbs

Amalgamatic plugin for UCSF Library databases

Installation

Install amalgamatic and this plugin via npm:

npm install amalgamatic amalgamatic-ucsflibdbs

Usage

var amalgamatic = require('amalgamatic'),
    dbs = require('amalgamatic-ucsflibdbs');

// Set the URL to point to the UCSF Library Database search page 
//   or, if you are using Browserify, a CORS proxy for it
dbs.setOptions({url: 'https://www.library.ucsf.edu/db'});

// Add this plugin to your Amalgamatic instance along with any other plugins you've configured.
amalgamatic.add('dbs', dbs);

//Use it!
var callback = function (err, results) {
    if (err) {
        console.dir(err);
    } else {
        results.forEach(function (result) {
            console.log(result.name);
            console.dir(result.data);
        });
    }
};

amalgamatic.search({searchTerm: 'medicine'}, callback);
1.2.2

8 years ago

1.2.1

9 years ago

1.2.0

9 years ago

1.1.4

10 years ago

1.1.3

10 years ago

1.1.2

10 years ago

1.1.1

10 years ago

1.1.0

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago