UNPKG

@kenxirwin/primo-search-api

Version:
30 lines (22 loc) 567 B
# Primo Search API This is a basic implementation of the ExLibris Primo Search API. Usage: `npm install @kenxirwin/primo-search-api` `import SearchApi from '@kenxirwin/primo-search-api';` Initialize with your local settings: ``` const searchApi = new SearchApi({ baseUrl, vid, scope, tab, apiKey, }); ``` Query Primo with the main query, plus any additional params, e.g.: ``` const searchQuery = 'any,contains,quixote'; let res = await searchApi.search(searchQuery); // or let res = await searchApi.search(searchQuery, { limit: 2, lang: 'es' }); ```