# js-cid
**Repository Path**: mirrors_mikeal/js-cid
## Basic Information
- **Project Name**: js-cid
- **Description**: CID implementation in JavaScript
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2020-08-09
- **Last Updated**: 2025-09-27
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# js-cid
[](http://ipn.io)
[](http://webchat.freenode.net/?channels=%23ipfs)
[](https://coveralls.io/github/ipfs/js-cid?branch=master)
[](https://travis-ci.org/ipld/js-cid)
[](https://circleci.com/gh/ipld/js-cid)
[](https://david-dm.org/ipld/js-cid)
[](https://github.com/feross/standard)


> [CID](https://github.com/ipld/cid) implementation in JavaScript.
## Lead Maintainer
[Volker Mische](https://github.com/vmx)
## Table of Contents
- [Install](#install)
- [In Node.js through npm](#in-nodejs-through-npm)
- [Browser: Browserify, Webpack, other bundlers](#browser-browserify-webpack-other-bundlers)
- [In the Browser through `
```
#### Gotchas
You will need to use Node.js `Buffer` API compatible, if you are running inside the browser, you can access it by `multihash.Buffer` or you can install Feross's [Buffer](https://github.com/feross/buffer).
## Usage
```js
const CID = require('cids')
// V1 CID
const cid = new CID(1, 'dag-pb', multihash)
// V0 CID
const cid = new CID(base58Multihash)
```
## API
See https://ipld.github.io/js-cid
## Contribute
[](https://github.com/ipfs/community/blob/master/contributing.md)
Contributions welcome. Please check out [the issues](https://github.com/ipld/js-cid/issues).
Check out our [contributing document](https://github.com/ipfs/community/blob/master/contributing.md) 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](https://github.com/ipfs/community/blob/master/code-of-conduct.md).
Small note: If editing the Readme, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.
## License
MIT