Socket
Socket
Sign inDemoInstall

redbox-ro-crate

Package Overview
Dependencies
84
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    redbox-ro-crate

Converts a ReDBox data publication to an RO-crate


Version published
Weekly downloads
1
decreased by-96.43%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

redbox-ro-crate

Crosswalk a redbox data publication to an ro-crate-metadata.jsonld file. Forked from the old datacrate library and modified as little as possible because for now we just want to get Stash publishing ro-crates instead of datacrates.

Usage

Note that rb2rocrate is an async function

const rb2ro = require('redbox-ro-crate').rb2rocrate;
const datapub = get_metadata_from_rb2_somehow();
const jsonld = await rb2rocrate(datapub);
await fs.writeFile('ro-crate-metadata.jsonld', JSON.stringify(jsonld, null, 2));

To-do

Do a more robust job with the geolocations field using GeoJSON-LD.

Keywords

FAQs

Last updated on 17 Dec 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc