@nondef/ts-oai-pmh

0.0.2 • Public • Published

Test & Deploy codecov npm version

OAI PMH Typescript

A TypeScript module for the Open Archives Initiative Protocol for Metadata Harvesting (OAI-PMH 2.0). Use this module if you want to harvest metadata from OAI-PMH providers, e.g., arxiv.

Installation

npm install oai-pmh

Basic usage

As typescript library

const oaiPmh = new OaiPmh(
	"http://bibsys-network.alma.exlibrisgroup.com/view/oai/47BIBSYS_NETWORK/request" as unknown as URL,
);
const options = {
	metadataPrefix: "marc21",
	set: "oai_komplett",
	from: new Date("2020-01-01"),
	until: new Date("2020-01-03"),
};
const res = [];
for await (const identifier of oaiPmh.listIdentifiers(options)) {
	res.push(identifier);
}

For details see the documentation

Through CLI

to be done

Package Sidebar

Install

npm i @nondef/ts-oai-pmh

Weekly Downloads

1

Version

0.0.2

License

GPL-3.0

Unpacked Size

235 kB

Total Files

43

Last publish

Collaborators

  • nondef