https://github.com/ipld/js-dag-json
JSON Directed Acyclic Graph for IPLD
https://github.com/ipld/js-dag-json
Last synced: about 1 month ago
JSON representation
JSON Directed Acyclic Graph for IPLD
- Host: GitHub
- URL: https://github.com/ipld/js-dag-json
- Owner: ipld
- License: other
- Created: 2018-08-14T00:23:42.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2026-05-12T03:00:41.000Z (about 1 month ago)
- Last Synced: 2026-05-12T03:10:31.222Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 336 KB
- Stars: 23
- Watchers: 15
- Forks: 7
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# @ipld/dag-json
[](https://codecov.io/gh/ipld/js-dag-json)
[](https://github.com/ipld/js-dag-json/actions/workflows/js-test-and-release.yml?query=branch%3Amaster)
> JS implementation of DAG-JSON
# Install
```console
$ npm i @ipld/dag-json
```
## Browser `` tag
Loading this module through a script tag will make its exports available as `IpldDagJson` in the global namespace.
```html
<script src="https://unpkg.com/@ipld/dag-json/dist/index.min.js">
```
# Usage
`@ipld/dag-json` is designed to be used within multiformats but can be used separately. `encode()`, `decode()` are available as exports, as are `name` and `code` to match with the corresponding DAG-JSON [multicodec](https://github.com/multiformats/multicodec/).
# API Docs
-
# License
Licensed under either of
- Apache 2.0, ([LICENSE-APACHE](https://github.com/ipld/js-dag-json/LICENSE-APACHE) / )
- MIT ([LICENSE-MIT](https://github.com/ipld/js-dag-json/LICENSE-MIT) / )
# Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.