@oslo-flanders/metadata-generator

0.0.10-alpha.0 • Public • Published

metadata-generator

A metadata generation script specifically to be used by the OSLO-toolchain

Installation

npm install @oslo-flanders/metadata-generator

Global installation

To use the service from the command line anywhere, you can install it globally.

npm install -g @oslo-flanders/metadata-generator

API

The service is executed from the CLI and expects the following parameters:

Parameter Description Required Possible values
--hostname, -h The public hostname/domain on which the HTML is published. The hostname in the input file takes precedence. ✔️
--documentpath, -r The document path on which the HTML is published ✔️
--mainlanguage, -m The language to display (a language code string) ✔️
--primarylanguage, -g The primary language of the publication environment (a language code string) ✔️
--uridomain, -u The domain of the URIs that should be excluded from this vocabulary ✔️
--input, -i Input file ✔️
--output, -o Output file (the metadata file) ✔️
--prefix, -p Prefix for the logging No

Usage

metadata-generator --input input.json --output output.json --mainlanguage nl --prefix "[INFO] "
metadata-generator -h example.com -r /docs -i input.json -o output.json -m nl -g nl -u example.com -p "[INFO] "

Readme

Keywords

none

Package Sidebar

Install

npm i @oslo-flanders/metadata-generator

Weekly Downloads

0

Version

0.0.10-alpha.0

License

MIT

Unpacked Size

10.6 kB

Total Files

3

Last publish

Collaborators

  • kristofvandenbroucke
  • bertvn
  • ddvlanck