Socket
Socket
Sign inDemoInstall

multicodec

Package Overview
Dependencies
1
Maintainers
3
Versions
45
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    multicodec

JavaScript implementation of the multicodec specification


Version published
Weekly downloads
430K
decreased by-22.04%
Maintainers
3
Install size
571 kB
Created
Weekly downloads
 

Changelog

Source

0.2.7 (2018-06-06)

Bug Fixes

  • throw error instead of returning undefined (9859a71)

Features

  • add codec name to codec code helper (46e0e02)
  • make adding a custom codec possible (c6ee55b)

<a name="0.2.6"></a>

Readme

Source

js-multicodec

Travis CI Coverage Status

JavaScript implementation of the multicodec specification

Lead Maintainer

Henrique Dias

Table of Contents

TODO™

Install

> npm install multicodec
const multicodec = require('multicodec')

Usage

Example


const multicodec = require('multicodec')

const prefixedProtobuf = multicodec.addPrefix('protobuf', protobufBuffer)
// prefixedProtobuf 0x50...

Updating the lookup table

Updating the lookup table is a manual process. The source of truth is the multicodec default table. To make the process easier, there’s an AWK script in the tools directory that does a basic conversion of the default table. The result can’t be used as-is, but serves as a template for manual diffing. The workflow is:

API

https://multiformats.github.io/js-multicodec/

multicodec default table

Contribute

Contributions welcome. Please check out the issues.

Check out our contributing document for more information on how we work, and about contributing in general. Please be aware that all interactions related to multiformats are subject to the IPFS Code of Conduct.

Small note: If editing the README, please conform to the standard-readme specification.

License

MIT © 2016 Protocol Labs Inc.

Keywords

FAQs

Last updated on 06 Jun 2018

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc