{"_id":"@dlinc/context-secureld-activity-participant","name":"@dlinc/context-secureld-activity-participant","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@dlinc/context-secureld-activity-participant","version":"0.0.1","description":"SecureLD Activity Participant JSON-LD context for JavaScript.","main":"js/index.js","module":"./dist/context.esm.js","repository":{"type":"git","url":"git+https://github.com/dogwoodlogic/context-secureld-activity-participant.git"},"bugs":{"url":"https://github.com/dogwoodlogic/context-secureld-activity-participant/issues"},"author":{"name":"Dogwood Logic, Inc."},"homepage":"https://github.com/dogwoodlogic/context-secureld-activity-participant#readme","license":"BSD-3-Clause","keywords":["JSON-LD context","JSON-LD","Linked Data","context"],"devDependencies":{"chai":"^4.3.7","cross-env":"^7.0.3","eslint":"^8.43.0","eslint-config-digitalbazaar":"^5.0.1","json-loader":"^0.5.7","karma":"^6.4.2","karma-chai":"^0.1.0","karma-chrome-launcher":"^3.2.0","karma-mocha":"^2.0.1","karma-mocha-reporter":"^2.2.5","karma-sourcemap-loader":"^0.4.0","karma-webpack":"^5.0.0","mocha":"^10.2.0","rollup":"^3.25.3","rollup-plugin-commonjs":"^10.1.0","webpack":"^5.88.1","webpack-cli":"^5.1.4"},"engines":{"node":">=18"},"scripts":{"build":"npm run clean && npm run serialize && webpack && rollup -c","clean":"rm -rf dist/* && rm -rf contexts/*.jsonld","lint":"eslint .","prepare":"npm run build","serialize":"node bin/serialize.js","test":"npm run lint && npm run build && npm run test-node && npm run test-karma","test-karma":"karma start test/karma.conf.js","test-node":"cross-env NODE_ENV=test mocha --preserve-symlinks test/*.spec.js"},"gitHead":"0093a058103dc5060549a8c8c80339d01b56b55e","_id":"@dlinc/context-secureld-activity-participant@0.0.1","_nodeVersion":"18.14.0","_npmVersion":"9.3.1","dist":{"integrity":"sha512-aNGibzboL97lP7ptZ+12X4D+XG3QsVl/qlHl3TRq3x+/xACytOOU6xcF+xkXDiCTkDCjZf0OQ5OrZRbqcs8F1Q==","shasum":"3edd93cb329013fd4ac06ef7406e903ed18dab5b","tarball":"https://registry.npmjs.org/@dlinc/context-secureld-activity-participant/-/context-secureld-activity-participant-0.0.1.tgz","fileCount":10,"unpackedSize":12990,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCX1sXLx64HaeUmSIDwA9OnOu1wBlluQg2wL4/t6m8/PwIhANdkGkqZYW9eF/7tafpIOHtmjRvC/OwPHvrEsi6heF5s"}]},"_npmUser":{"name":"tolson","email":"tolson@dlinc.io"},"directories":{},"maintainers":[{"name":"elally","email":"elally@dlinc.io"},{"name":"tolson","email":"tolson@dlinc.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/context-secureld-activity-participant_0.0.1_1694541339162_0.8448120729025301"},"_hasShrinkwrap":false}},"time":{"created":"2023-09-12T17:55:39.044Z","0.0.1":"2023-09-12T17:55:39.360Z","modified":"2023-09-12T17:55:39.734Z"},"maintainers":[{"name":"elally","email":"elally@dlinc.io"},{"name":"tolson","email":"tolson@dlinc.io"}],"description":"SecureLD Activity Participant JSON-LD context for JavaScript.","homepage":"https://github.com/dogwoodlogic/context-secureld-activity-participant#readme","keywords":["JSON-LD context","JSON-LD","Linked Data","context"],"repository":{"type":"git","url":"git+https://github.com/dogwoodlogic/context-secureld-activity-participant.git"},"author":{"name":"Dogwood Logic, Inc."},"bugs":{"url":"https://github.com/dogwoodlogic/context-secureld-activity-participant/issues"},"license":"BSD-3-Clause","readme":"# SecureLD Activity Participant Context _(@dlinc/context-secureld-activity-participant)_\n\n[![Build status](https://img.shields.io/github/actions/workflow/status/dogwoodlogic/context-secureld-activity-participant/main.yml)](https://github.com/dogwoodlogic/context-secureld-activity-participant/actions/workflow/main.yml)\n[![NPM Version](https://img.shields.io/npm/v/@dlinc/context-secureld-activity-participant.svg)](https://npm.im/@dlinc/context-secureld-activity-participant)\n\n> A SecureLD Activity Participant JSON-LD context for JavaScript.\n\n## Table of Contents\n\n- [Background](#background)\n- [Install](#install)\n- [Usage](#usage)\n- [Developing](#developing)\n- [Commercial Support](#commercial-support)\n- [License](#license)\n\n## Install\n\n- Requires Node.js 18+.\n\nTo install via NPM:\n\n```\nnpm install @dlinc/context-secureld-activity-participant\n```\n\n## Usage\n\n```js\n// ESM\nimport * as ctx from '@dlinc/context-secureld-activity-participant';\n// CommonJS\nconst ctx = require('@dlinc/context-secureld-activity-participant');\nconst {contexts, constants, appContextMap} = ctx;\n\n// Default context URL\nctx.CONTEXT_URL\n// -> 'https://w3id.org/FIXME/v1'\n\n// Default context data\nctx.CONTEXT\n// -> full context object\n\n// Default codec term map value for CBOR-LD\nctx.constants.CBORLD_VALUE\n// ->  0x0..\n```\n\nThis package can be used with bundlers, such as [webpack][], in browser\napplications.\n\n## API\n\nThe library exports the following properties:\n- `CONTEXT_URL`: Default context URL.\n- `CONTEXT`: Default context data.\n- `CBORLD_VALUE`: Default codec term map value for [CBOR-LD][].\n- `constants`: A Object that maps constants to well-known context URLs. The\n  main constant `CONTEXT_URL` may be updated from time to time to the\n  latest context location.\n- `contexts`: A `Map` that maps all context URLs to full context data.\n- `appContextMap`: For use with the [cborld][] library.\n\n## Status\n\n- `https://w3id.org/FIXME/v1`: Under development. Not stable.\n\n## Developing\n\nSource is available at:\n- https://github.com/dogwoodlogic/context-secureld-activity-participant\n\n**WARNING**: The `.jsonld` in `contexts/` is auto-generated by the `npm run\nbuild` script, each time you run the test suite.\n\nDo NOT edit it directly (or your changes will be quickly overwritten).\nInstead, make all context changes to `js/context.js`.\n\n## License\n\n- BSD 3-Clause © Dogwood Logic\n- See the [LICENSE](./LICENSE) file for details.\n\n[CBOR-LD]: https://digitalbazaar.github.io/cbor-ld-spec/\n[cborld]: https://github.com/digitalbazaar/cborld\n[webpack]: https://webpack.js.org/\n","readmeFilename":"README.md"}