1.0.0 • Published 7 years ago

marc-record-converters v1.0.0

Weekly downloads
3
License
ISC
Repository
github
Last release
7 years ago

Convert MARC records between different formats Build Status Test Coverage

Convert MARC records between different formats. The following converters are available:

Usage

AMD

define(['marc-record-converters'], function(marc_record_converters) {

 ...
 var record = marc_record_converters.marc21slimXML.from(marcxml_str);
 console.log(marc_record_converters.marc21slimXML.to(record));
 ...

});

Node.js

...
var marc_record_converters = require('marc-record-converters'),
    record = marc_record_converters.marc21slimXML.from(marcxml_str);

console.log(marc_record_converters.marc21slimXML.to(record));
...

Development

Clone the sources and install the package using npm:

npm install

Run the following NPM script to lint, test and check coverage of the code:

npm run check

License and copyright

This project is based on marc-record-serializers. Both the original and the modified work are licensed under the terms of ISC License.

Modified work: Copyright (c) 2015, 2017 University Of Helsinki (The National Library Of Finland)
Original work: Copyright (c) 2015 Pasi Tuominen