Skip to content

Commit

Permalink
README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ctot-nondef committed Jan 7, 2024
1 parent 432fbfe commit d0977c0
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,23 @@ A TypeScript module for the Open Archives Initiative Protocol for Metadata Harve
npm install oai-pmh
```

documentation and usage coming soon
# Basic usage
## As typescript library
```typescript
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](https://ctot-nondef.github.io/ts-oai-pmh/)

## Through CLI

to be done

0 comments on commit d0977c0

Please sign in to comment.