New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

node-zoom2

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-zoom2

z39.50 with Node 12+ support

latest
Source
npmnpm
Version
0.9.2
Version published
Maintainers
1
Created
Source

NODE-ZOOM2

npm package

Build Status Coverage Status

Requirements

  • YAZ

Debian/Ubuntu

sudo apt-get install -y libyaz5-dev

Mac

brew install yaz

Windows

Install yaz5 for your respective operating system version via the FTP links for (x86 or x64) making sure to install YAZ to default Program Files location and add YAZ to system path.

Note: Installing x86 version on x64 OS will not work

Installation

npm i node-zoom2

Common Installation Issues

If libyaz5-dev is not available on your distributions package manager by default run (or have a look at)

./preinstall.sh

Which will initalize the IndexData repository

Example

var zoom = require('node-zoom2');

zoom.connection('192.83.186.170:210/INNOPAC')
.set('preferredRecordSyntax', 'usmarc')
.query('prefix', '@attr 1=7 ' + '9780073383095')
.createReadStream()
.on('data', function (record) {
  console.log(record.json, record.xml, record.raw);
})
.on('close', function(close) {
  process.exit(1);
})

API

Connection

  • #set(optName, optValue)
  • #get(optName)
  • #query([type], querystring)
  • #search(callback)
  • #createReadStream([options])
  • #destroy()

ResultSet

  • .size
  • #destroy()
  • #getRecords(start, count, callback)

Records

  • #hasNext()
  • #next()

Record

  • .json
  • .database
  • .syntax
  • .schema
  • .render
  • .raw
  • .xml
  • .txml

Keywords

zoom

FAQs

Package last updated on 12 Oct 2023

Did you know?

Socket

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.

Install

Related posts