Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
@digitalcredentials/dcc-context
Advanced tools
DCC core artifacts: contexts and schemas.
An NPM module and JSON-LD source file for the DCC context:
https://w3id.org/dcc/v1
See also (related specs):
Requires Node.js 12+
To install via NPM, add the following to your package.json
dependencies:
"@digitalcredentials/dcc-context": "^1.0.0"
import dccCtx from '@digitalcredentials/dcc-context';
// or
const dccCtx = require('@digitalcredentials/dcc-context');
const {contexts, constants, appContextMap} = dccCtx;
dccCtx.CONTEXT_URL_V1
// 'https://w3id.org/dcc/v1'
// get context data for a specific context
dccCtx.CONTEXT_V1
// full context object
This package can be used with bundlers, such as webpack, in browser applications.
The library exports the following properties:
CONTEXT_URL_V1
and CONTEXT_V1
.appContextMap
: For use with cborld
library.WARNING: The .json
file in v1/
is auto-generated by the npm run build
script,
each time you run the test suite.
DO NOT edit it directly (or your changes will be quickly overwritten).
Instead, make all context changes to js/context.js
.
FAQs
DCC core JSON-LD context.
The npm package @digitalcredentials/dcc-context receives a total of 191 weekly downloads. As such, @digitalcredentials/dcc-context popularity was classified as not popular.
We found that @digitalcredentials/dcc-context demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 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.
Security News
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.