
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@helia/dag-cbor
Advanced tools
Add/get IPLD blocks containing dag-cbor with your Helia node
@helia/dag-cbor makes working with DAG-CBOR https://ipld.io/docs/codecs/known/dag-cbor/ simple & straightforward.
See the DAGCBOR interface for all available operations.
import { createHelia } from 'helia'
import { dagCbor } from '@helia/dag-cbor'
import { CID } from 'multiformats/cid'
const helia = await createHelia()
const d = dagCbor(helia)
const cid = await d.add({
hello: 'world'
})
const obj = await d.get(cid)
console.info(obj)
// { hello: 'world' }
$ npm i @helia/dag-cbor
<script> tagLoading this module through a script tag will make its exports available as HeliaDagCbor in the global namespace.
<script src="https://unpkg.com/@helia/dag-cbor/dist/index.min.js"></script>
Licensed under either of
Contributions welcome! Please check out the issues.
Also see our contributing document for more information on how we work, and about contributing in general.
Please be aware that all interactions related to this repo are subject to the IPFS Code of Conduct.
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.
FAQs
Add/get IPLD blocks containing dag-cbor with your Helia node
The npm package @helia/dag-cbor receives a total of 1,822 weekly downloads. As such, @helia/dag-cbor popularity was classified as popular.
We found that @helia/dag-cbor demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.