Socket
Socket
Sign inDemoInstall

age-verification-context

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

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
11
increased by57.14%
Maintainers
1
Install size
15.4 kB
Created
Weekly downloads
 

Changelog

Source

5.0.0 - 2021-06-03

Changed

  • BREAKING: Rename npm package to age-verification-context (now unscoped).

Readme

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

Last updated on 04 Jun 2021

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