Package Exports
- security-context
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 (security-context) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Security Vocabulary
This repository contains the Digital Verification Community Group Security Vocabulary and a npm package that exports related contexts and constants.
Security Vocabulary
Security Vocabulary specification: https://w3c-dvcg.github.io/security-vocab/.
Context Package
The repository contains JSON-LD contexts for the Security Vocabulary. These are also packaged in a npm package for CommonJS and ES Modules. To use with NPM and Node.js, use the following:
npm install security-contextThe package exposes two values:
contexts: A Map from context URI to JSON-LD context.constants: An Object of shorthand keys mapped to context URIs.
const {contexts, constants} = require('security-context');With ES Modules:
// use one of the following forms:
import * as securityvocab1 from 'security-context';
import {default as securityvocab2} from 'security-context';
import {contexts, constants} from 'security-context';