@natlibfi/sru-client
SRU client for Node.js and browser
Last updated 5 months ago by drone-melinda .
LGPL-3.0+ · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @natlibfi/sru-client 
SYNC missed versions from official npm registry.

SRU client for Node.js and browser NPM Version Build Status

SRU client for Node.js and browser

Usage

ES modules

import createSruClient from '@natlibfi/sru-client';
const client = createSruClient({serverUrl: 'https://foo.bar'});

client.searchRetrieve('foo')
  .on('record', xmlString => processRecord(xmlString))
  .on('end', () => endProcessing())
  .on('error', err => handleError(err));

Node

const createSruClient = require('@natlibfi/sru-client').default;
const client = createSruClient({serverUrl: 'https://foo.bar'});

client.searchRetrieve('foo')
  .on('record', xmlString => processRecord(xmlString))
  .on('end', () => endProcessing())
  .on('error', err => handleError(err));

Client constructor options

...createSruClient({serverUrl: 'https://foo.bar', version: '1.0', maximumRecords: '1'});

License and copyright

Copyright (c) 2015, 2017-2018 University Of Helsinki (The National Library Of Finland)

This project's source code is licensed under the terms of GNU Lesser General Public License Version 3 or any later version.

Current Tags

  • 3.1.3                                ...           latest (5 months ago)

9 Versions

  • 3.1.3                                ...           5 months ago
  • 3.1.2                                ...           a year ago
  • 3.1.1                                ...           a year ago
  • 3.1.0                                ...           a year ago
  • 3.0.1                                ...           a year ago
  • 3.0.0                                ...           a year ago
  • 2.0.1                                ...           2 years ago
  • 2.0.0                                ...           2 years ago
  • 1.0.0                                ...           3 years ago
Downloads
Today 0
This Week 0
This Month 3
Last Day 0
Last Week 0
Last Month 3
Dependencies (2)
Dev Dependencies (11)

Copyright 2014 - 2016 © taobao.org |