Skip to content

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

License

Notifications You must be signed in to change notification settings

Language-Research-Technology/ro-crate-html-lite

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published