tw-library

tw-library ==========

Usage no npm install needed!

<script type="module">
  import twLibrary from 'https://cdn.skypack.dev/tw-library';
</script>

README

tw-library

Example

var Library = require('./lib/library');
var lib = Library.create(/* host:port/database */); // default: 192.83.186.170:210/INNOPAC

lib.search('@attr 1=7 9789866613562')
.then(function (books) {
  var book = books.first();
  return book.getData();
})
.then(function (data) {
  console.log(data);
  lib.close();
}, function (err) {
  console.error(err);
});