# @digitalcredentials/dcc-context

> DCC core JSON-LD context.

Latest version **1.0.0** (published 2022-01-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install @digitalcredentials/dcc-context
pnpm add @digitalcredentials/dcc-context
yarn add @digitalcredentials/dcc-context
bun add @digitalcredentials/dcc-context
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2022-01-19 |
| First published | 2022-01-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 10 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Digital Credentials Consortium |
| Maintainers | codenamedmitri, kimhd, uligall, alexander.muehle, stuartf, jchartrand, kiliankae |

## Links

- npm: https://www.npmjs.com/package/@digitalcredentials/dcc-context
- Repository: https://github.com/digitalcredentials/dcc
- Homepage: https://github.com/digitalcredentials/dcc#readme
- Issues: https://github.com/digitalcredentials/dcc/issues
- npm.io page: https://npm.io/package/@digitalcredentials/dcc-context

## Recent versions

- 1.0.0 (latest) — 2022-01-19

## README

# DCC Context and Schema Repo _(@digitalcredentials/dcc-context)_

[![Build status](https://img.shields.io/github/workflow/status/digitalcredentials/dcc/Node.js%20CI)](https://github.com/digitalcredentials/dcc/actions?query=workflow%3A%22Node.js+CI%22)

> DCC core artifacts: contexts and schemas.

## Table of Contents

- [Background](#background)
- [Install](#install)
- [Usage](#usage)
- [Developing](#developing)
- [Commercial Support](#commercial-support)
- [License](#license)

## Background

An NPM module and JSON-LD source file for the DCC context:

`https://w3id.org/dcc/v1`

See also (related specs):

* https://github.com/digitalcredentials/docs

## Install

Requires Node.js 12+

To install via NPM, add the following to your `package.json` dependencies:

```
"@digitalcredentials/dcc-context": "^1.0.0"
```

## Usage

```js
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.

## API

The library exports the following properties:
- `CONTEXT_URL_V1` and `CONTEXT_V1`.
- `appContextMap`: For use with `cborld` library.

## Developing

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`.

## License

- MIT [LICENSE](./LICENSE).

[webpack]: https://webpack.js.org/

---
_Source: https://npm.io/package/@digitalcredentials/dcc-context · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
