
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
API layer to interact with Exlibris.
var exlibris = require('exlibris');
var el = new exlibris();
// Setup Exlibris
el
.setKey('SOME LONG API KEY')
.setRegion('apac')
// Search for resources
el .resources.search({title: 'Cancer'}, function(err, found) {
// Do something with the found resources
});
// Search for users
el.users.search({limit: 10}, function(err, res) {
// Do something with the first 10 users
})
This is only a partial implementation of the Exlibris API. Please get in touch if you require anything not supplied here that I've not implemented yet. All API calls are chainable and return the same instance of the original Exlibris object unless otherwise stated.
In most cases the testkit shows examples of the below. The source code also contains JSDoc markup for parameter / return information.
Setup a new instance of the Exlibris library. Passing the optional config object will automatically call setConfig() for you.
Merge an object into the Exlibris objects config (also available via the constructor)
Sets the geographic region.
Can be one of us, eu or apac (Asia Pacific).
Convenience function to quickly set the API key to use.
Translates a MongoDB like query object and returns an Exlibris/Primo compatible query string. This function is used internally to translate queries for users, resources etc.
Search for resources and return the results in a callback.
query can be either a Exlibris/Primo query string, if an object is passed it is translated via translateQuery() automatically.
Retrieve a single resource by its ID in a callback.
Make a resource request (i.e. instruct someone in your local library to fetch the resource from an off-site location / database).
resource can be either a record returned by resources.get() or its string ID.
fieldsObj is an optional object containing additional fields to attach to the request. See the source code for the full list.
NOTE: You may wish to use the higher-level sra-exlibris-request module instead of this API call directly.
Search for users and return the results in a callback.
The query will be translated via translateQuery().
FAQs
ExLibris API wrapper
The npm package exlibris receives a total of 6 weekly downloads. As such, exlibris popularity was classified as not popular.
We found that exlibris demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.