1.0.1 • Published 8 years ago

marc-record-validators-melinda v1.0.1

Weekly downloads
6
License
AGPL-3.0+
Repository
github
Last release
8 years ago

Melinda-related validators for marc-record-validate NPM Version Build Status Test Coverage

This project contains Melinda-related validators for marc-record-validate. Melinda is a union catalogue of Finnish libraries maintained by The National Library of Finland.

Usage

The project's main module is a marc-record-validate bundle that contains all the validators. See lib/validators for invidual modules.

Node.js

var validate = require('marc-record-validators-melinda')({
  fix: true
}),
results = validate(record);

AMD

define(['marc-record-validators-melinda'], function(validateFactory) {

  var validate = validateFactory({
    fix: true
  }),
  results = validate(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

Copyright (c) 2014-2017 University Of Helsinki (The National Library Of Finland)

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