New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@wingriders/datum-explorer-lib

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wingriders/datum-explorer-lib

Datum Explorer is an open-source library designed to decode, understand, and build with CBOR (Concise Binary Object Representation) data. The library simplifies working with CBOR by leveraging schema definitions to provide a more human-readable and struct

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
0
Created
Source

Datum Explorer Library

Datum Explorer is an open-source library designed to decode, understand, and build with CBOR (Concise Binary Object Representation) data. The library simplifies working with CBOR by leveraging schema definitions to provide a more human-readable and structured representation of the data.

Features

  • CBOR Parsing: Parses CBOR data using CDDL schema.
  • CDDL Validation: Validates CDDL schema files and checks for unsupported features.

Get started

npm

npm install @wingriders/datum-explorer-lib

pnpm

pnpm add @wingriders/datum-explorer-lib

yarn

yarn add @wingriders/datum-explorer-lib

Usage

Parsing CBOR with a CDDL schema

To parse CBOR data using a specified CDDL schema file:

import {parseCbor} from '@wingriders/datum-explorer-lib'

const result = await parseCbor('<CDDL schema file contents>', '<Raw CBOR string>')
console.log(result)

Validating CDDL schema and checking unsupported features

To validate specified CDDL schema file and check unsupported features:

import {validateCddl} from '@wingriders/datum-explorer-lib'

// Throws an error if the schema is invalid or is using unsupported features
await validateCddl('<CDDL schema file contents>')

Keywords

cardano

FAQs

Package last updated on 05 Feb 2025

Did you know?

Socket

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