0.9.2 • Published 2 years ago
node-zoom2 v0.9.2
NODE-ZOOM2
Requirements
Debian/Ubuntu
sudo apt-get install -y libyaz5-devMac
brew install yazWindows
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-zoom2Common Installation Issues
If libyaz5-dev is not available on your distributions package manager by default run (or have a look at)
./preinstall.shWhich 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
0.9.2
2 years ago
0.9.0
2 years ago
0.9.1
2 years ago
0.8.1
3 years ago
0.8.0
3 years ago
0.7.2
4 years ago
0.6.2
4 years ago
0.7.3
4 years ago
0.5.0
4 years ago
0.7.0
4 years ago
0.6.1
4 years ago
0.5.2
4 years ago
0.6.0
4 years ago
0.5.1
4 years ago
0.4.1
6 years ago
0.4.0
6 years ago
0.3.0
7 years ago
0.2.8
8 years ago
0.2.7
8 years ago
0.2.6
8 years ago
0.2.5
8 years ago
0.2.4
8 years ago
0.2.3
8 years ago
0.2.2
8 years ago
0.2.1
8 years ago
0.2.0
8 years ago
