Socket
Socket
Sign inDemoInstall

age-verification-context

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

age-verification-context

Age Verification token context for JSON-LD.


Version published
Weekly downloads
7
decreased by-30%
Maintainers
0
Weekly downloads
 
Created
Source

Age Verification Token context (age-verification-context)

Age Verification Token context for JSON-LD.

Table of Contents

  • Background
  • Install
  • Usage
  • Commercial Support
  • License

Background

See also (related specs):

Install

Requires Node.js 14+

To install via NPM:

npm install age-verification-context

Usage

const {
  contexts, constants, CONTEXT_URL_V1
} = require('age-verification-context');

// use URL in a JSON-LD context
const obj = {
  "@context": [
    constants.CONTEXT_URL,
    // ...
  ],
  // ...
};

// Codec term map value for CBOR-LD
constants.CBORLD_CODEC_VALUE
// 0x16

// get context data for a specific context
const data = contexts.get('https://w3id.org/age/v1');
// ...

This package can be used with bundlers, such as [webpack][], in browser applications.

API

The library exports two properties:

  • constants: A Object that maps constants to well-known context URLs. The main constant CONTEXT_URL_V1 may be updated from time to time to the latest context location.
  • contexts: A Map that maps URLs to full context data.

Commercial Support

Commercial support for this library is available upon request from Digital Bazaar: support@digitalbazaar.com

License

FAQs

Package last updated on 22 Jun 2024

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc