A JSON-LD Processor and API implementation in JavaScript.
npm install @govtechsg/jsonld@govtechsg/jsonld
=========
Fork of https://github.com/digitalbazaar/jsonld.js
```
npm install @govtechsg/jsonld
The initial library uses an ESM only library which breaks in almost all our libraries:
- open-attestation requires a specific mock for tests. Same in other libraries.open-attestation-cli
- can't use pkg, we had to customise the build step.
- we faced another issue when using next.js + serverless build.
- there are probably more
Additional reads:
- https://github.com/digitalbazaar/jsonld.js/issues/451
- https://github.com/Nebulis/tech-stuff/issues/2
- the build is broken as it is broken on the original repository
- we plan to reuse back jsonld as soon as it's possible, i.e. when all the tooling works correctly@digitalbazaar/http-client
- we replaced by cross-fetch`