Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 1.13 KB

README.md

File metadata and controls

41 lines (26 loc) · 1.13 KB

ro-crate-html-lite

A tool to create a complete, completely static ro-crate-preview.html file with the same functionality as ro-crate-html-js but without any dependence on online resources or JavaScript (except for some small helpers).

HTML Preview Lite is available without any installation at the RO-Crate Playground.

Install

npm install .

Usage

node index.js [options] <path_to_crate_directory>

Load an RO-Crate from a specified directory.

Arguments:
path_to_crate_directory     Path to the crate directory.

Options:
-l, --layout <layoutPath>   Filepath or URL to a layout file in JSON format. This forces the script to use the specified layout instead of the default or the one present in the crate. Use raw link if URL is from GitHub. (Default: "https://github.com/Language-Research-Technology/crate-o/blob/main/src/lib/components/default_layout.json")
-h, --help                  Display help for command.

Run with test data

Sample crate:

node index.js test_data/sample

COOEE:

node index.js test_data/cooee