JSPM

@digitalbazaar/age-verification-context

2.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 14
  • Score
    100M100P100Q53890F
  • License BSD-3-Clause

Age Verification context for JSON-LD.

Package Exports

  • @digitalbazaar/age-verification-context
  • @digitalbazaar/age-verification-context/dist/context.esm.js
  • @digitalbazaar/age-verification-context/js/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@digitalbazaar/age-verification-context) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Age Verification Context (@digitalbazaar/age-verification-context)

Build status NPM Version

Age Verification context for JSON-LD.

Table of Contents

Background

TBD

Install

Requires Node.js 14+

To install via NPM:

npm install @digitalbazaar/age-verification-context

Usage

import ageCtx from '@digitalbazaar/age-verification-context';
// or
const ageCtx = require('@digitalbazaar/age-verification-context');
const {contexts, constants} = ageCtx;

ageCtx.CONTEXT_URL_V1
// 'https://w3id.org/age/v1'

// get context data for a specific context
ageCtx.CONTEXT_V1
// full context object

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

API

The library exports the following properties:

  • CONTEXT_URL_V1 and CONTEXT_V1 (it's recommended that context repositories only export one context).
  • 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

  • BSD 3-Clause © Digital Bazaar
  • See the LICENSE file for details.