# @govtechsg/jsonld

> A JSON-LD Processor and API implementation in JavaScript.

Latest version **0.1.1** (published 2021-09-17) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install @govtechsg/jsonld
pnpm add @govtechsg/jsonld
yarn add @govtechsg/jsonld
bun add @govtechsg/jsonld
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2021-09-17 |
| First published | 2021-09-16 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=12 |
| Dependencies | 4 |
| Unpacked size | 2.4 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | gylsky, gdsbot, gds_ace_dlt, rjchow, eijiew, ryanoolala, nebulis, dyihoon90, sebastianquek |
| Keywords | JSON, JSON-LD, Linked Data, RDF, Semantic Web, jsonld |

## Links

- npm: https://www.npmjs.com/package/@govtechsg/jsonld
- Repository: https://github.com/Open-Attestation/jsonld.js
- Issues: https://github.com/Open-Attestation/jsonld.js/issues
- npm.io page: https://npm.io/package/@govtechsg/jsonld

## Dependencies (4)

- [lru-cache](https://npm.io/package/lru-cache.md) ^6.0.0
- [cross-fetch](https://npm.io/package/cross-fetch.md) ^3.1.4
- [canonicalize](https://npm.io/package/canonicalize.md) ^1.0.1
- [rdf-canonize](https://npm.io/package/rdf-canonize.md) ^3.0.0

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 0.1.1 (latest) — 2021-09-17
- 0.1.0 — 2021-09-16

## README

@govtechsg/jsonld
=========

Fork of https://github.com/digitalbazaar/jsonld.js

# Installation

```
npm install @govtechsg/jsonld
```

# Why forking?

The initial library uses an ESM only library which breaks in almost all our libraries:
- `open-attestation` requires a specific [mock for tests](https://github.com/Open-Attestation/open-attestation/blob/master/__mocks__/%40digitalbazaar/http-client.js). Same in other libraries.
- `open-attestation-cli` can't use [pkg](https://github.com/vercel/pkg), we had to [customise the build step](https://github.com/Open-Attestation/open-attestation-cli/pull/152).
- 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

# Additional information

- 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
- we replaced `@digitalbazaar/http-client` by `cross-fetch`

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