
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
age-verification-context
Advanced tools
Age Verification Token context for JSON-LD.
See also (related specs):
Requires Node.js 14+
To install via NPM:
npm install age-verification-context
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.
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 for this library is available upon request from Digital Bazaar: support@digitalbazaar.com
6.0.0 - 2024-06-22
contentHash
property with digestMultibase
.@protected
value to boolean.FAQs
Age Verification token context for JSON-LD.
We found that age-verification-context demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
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.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.