{"bugs":{"url":"https://github.com/ipfs/js-ipfs-block/issues"},"dist":{"shasum":"05e1068832775e8f1c2da5b64106cc837fd2acb9","tarball":"https://registry.npmjs.org/ipfs-block/-/ipfs-block-0.8.1.tgz","fileCount":6,"integrity":"sha512-0FaCpmij+jZBoUYhjoB5ptjdl9QzvrdRIoBmUU5JiBnK2GA+4YM/ifklaB8ePRhA/rRzhd+KYBjvMFMAL4NrVQ==","signatures":[{"sig":"MEYCIQC0Gfu4VqldOi++uGr5aiPVmEeIxUOdBFCa0xO4ERkr2QIhAKrjzAie0ooysn3AEgvjI//xCHST/O4XNOvLA0wsOQJO","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11548,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc1JE9CRA9TVsSAnZWagAACHgP/27bt53xX34m1tdxVllw\ngnUJiAbQohasiy/GFnpDvK+EoblVVj2mGa4bD13kEPcnxXhJ7jsW6RXHnYr6\nmFABN0cIHR5kM13fIp7rENeGu94MPhQgNUug/5uLkfB/BQNNTfTuDj69sTWC\n+n/KzuUoh008049Wmxc6NQXyKsd46fLY3+Ve27TaP8c7eTTshMWCdOd7ucxA\n+L41VUdYQR839akvstH6uks7Wa+kh9TCDsGd4EH0xdM9nTzHPGcG38FoO/6B\nlqKyyQ0+xxgA3I9Gs9PS2BRfamU+KiNb/hRDRwYz5NjG2GveEDeg8jAvV7mO\naJ3tB67Bhh1iFzAUdKjGV19/sWk8OhqSxjURqYQjiYPdg9hb6MV1yHt70l8u\n8vww1sUqWuoMYgvmaBjxBarKkWyh/49ywnCbcX6G8jPo/G23uBywSdoDAQqe\nf+a4JXBREy2nrTsm1POnT/gNKwH2AdmAh/EaRV4MI0nm6/t61QGxVlYjnng0\n2B2xw0oyXCylF5hdT6ahZIl84VBG0a+M7o70aBjpALVMsFCsTW8E5s2IF7W6\n30xF74Me5DB8GbRpzIIgJT40+tXfEqNyePwY9cZ01qiLohj4/hIAiZBHsfTe\n40LeEBEIdqul0DweWEhmn2qL/3XaYBLpXcl6TgKLF3Vnr+ofTtk+LqnBuzSC\nw/5j\r\n=JWkb\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","name":"ipfs-block","readme":"# IPFS Block JavaScript Implementation\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://ipn.io)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme compliant](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![Travis CI](https://flat.badgen.net/travis/ipfs/js-ipfs-block)](https://travis-ci.com/ipfs/js-ipfs-block)\n[![Coverage Status](https://coveralls.io/repos/github/ipfs/js-ipfs-block/badge.svg?branch=master)](https://coveralls.io/github/ipfs/js-ipfs-block?branch=master)\n[![Dependency Status](https://david-dm.org/ipfs/js-ipfs-block.svg?style=flat-square)](https://david-dm.org/ipfs/js-ipfs-block)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n![](https://img.shields.io/badge/npm-%3E%3D3.0.0-orange.svg?style=flat-square)\n![](https://img.shields.io/badge/Node.js-%3E%3D4.0.0-orange.svg?style=flat-square)\n\n> [IPFS][ipfs] implementation of the Block data structure in JavaScript.\n\n**Block** - A block is a blob of binary data.\n\n## Lead Maintainer\n\n[Volker Mische](https://github.com/vmx)\n\n## Table of Contents\n\n- [Install](#install)\n  - [npm](#npm)\n- [Usage](#usage)\n  - [Node.js](#nodejs)\n    - [Example](#example)\n  - [Browser: Browserify, Webpack, other bundlers](#browser-browserify-webpack-other-bundlers)\n  - [Browser: `<script>` Tag](#browser-script-tag)\n- [API](#api)\n  - [Block](#block)\n    - [`new Block(data, cid)`](#new-blockdata-cid)\n    - [`block.data`](#blockdata)\n    - [`block.cid`](#blockcid)\n- [Contribute](#contribute)\n- [License](#license)\n\n## Install\n\n### npm\n\n```sh\n> npm install ipfs-block\n```\n\n## Usage\n\n### Node.js\n\n```js\nconst Block = require('ipfs-block')\n```\n\n#### Example\n\n```js\nconst Block = require('ipfs-block')\n\n// create a block\nconst block = new Block(new Buffer('hello world'), cid)\nconsole.log(block.data.toString())\n```\n\n### Browser: Browserify, Webpack, other bundlers\n\nThe code published to npm that gets loaded on require is in fact a ES5\ntranspiled version with the right shims added. This means that you can require\nit and use with your favourite bundler without having to adjust asset management\nprocess.\n\n```js\nconst Block = require('ipfs-block')\n```\n\n### Browser: `<script>` Tag\n\nLoading this module through a script tag will make the `IpfsBlock` obj available in\nthe global namespace.\n\n```html\n<script src=\"https://unpkg.com/ipfs-block/dist/index.min.js\"></script>\n<!-- OR -->\n<script src=\"https://unpkg.com/ipfs-block/dist/index.js\"></script>\n```\n\n## API\n\n```js\nconst Block = require('ipfs-block')\n```\n\n### Block\n\n#### `new Block(data, cid)`\n\n- `data: Buffer`\n\nCreates a new block with raw data `data`.\n\n#### `block.data`\n\nThe raw data of the block. Its format matches whatever was provided in its constructor.\n\n#### `block.cid`\n\nThe cid of the block.\n\n[ipfs]: https://ipfs.io\n[multihash]: https://github.com/jbenet/js-multihash\n\n## Contribute\n\nFeel free to join in. All welcome. Open an [issue](https://github.com/ipfs/js-ipfs-block/issues)!\n\nThis repository falls under the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).\n\n[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/contributing.md)\n\n## License\n\n[MIT](LICENSE)\n","engines":{"npm":">=3.0.0","node":">=6.0.0"},"gitHead":"a819748b5afb9e5e202a2ddac9a5ddbd84b00beb","license":"MIT","scripts":{"docs":"aegir-docs","lint":"aegir lint","test":"aegir test","build":"aegir build","release":"aegir release --docs","coverage":"aegir coverage","test:node":"aegir test --target node","test:browser":"aegir test --target browser","release-major":"aegir release --type major --docs","release-minor":"aegir release --type minor --docs","coverage-publish":"aegir coverage --provider coveralls"},"_npmUser":{"name":"vmx","email":"volker.mische@gmail.com"},"homepage":"https://github.com/ipfs/js-ipfs-block#readme","keywords":["IPFS"],"pre-commit":["lint","test"],"repository":{"url":"git+https://github.com/ipfs/js-ipfs-block.git","type":"git"},"_npmVersion":"6.9.0","description":"JavaScript Implementation of IPFS Block","directories":{},"maintainers":[{"name":"daviddias","email":"mail@daviddias.me"},{"name":"dignifiedquire","email":"dignifiedquire@gmail.com"},{"name":"victorbjelkholm","email":"victorbjelkholm@gmail.com"},{"name":"vmx","email":"volker.mische@gmail.com"}],"_nodeVersion":"12.2.0","contributors":[{"name":"Charlie","email":"the_charlie_daly@hotmail.co.uk"},{"name":"David Dias","email":"daviddias.p@gmail.com"},{"name":"David Dias","email":"imp@imp.local"},{"name":"Diogo Silva","email":"fsdiogo@gmail.com"},{"name":"Friedel Ziegelmayer","email":"dignifiedquire@gmail.com"},{"name":"Greenkeeper","email":"support@greenkeeper.io"},{"name":"Richard Littauer","email":"richard.littauer@gmail.com"},{"name":"Richard Schneider","email":"makaretu@gmail.com"},{"name":"Victor Bjelkholm","email":"victorbjelkholm@gmail.com"},{"name":"Volker Mische","email":"volker.mische@gmail.com"},{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"greenkeeper[bot]","email":"greenkeeper[bot]@users.noreply.github.com"},{"name":"jonahweissman","email":"19804455+jonahweissman@users.noreply.github.com"},{"name":"npmcdn-to-unpkg-bot","email":"npmcdn-to-unpkg-bot@users.noreply.github.com"}],"dependencies":{"cids":"~0.7.0","class-is":"^1.1.0"},"_hasShrinkwrap":false,"leadMaintainer":"Volker Mische <volker.mische@gmail.com>","readmeFilename":"README.md","devDependencies":{"chai":"^4.2.0","aegir":"^18.2.0"},"_npmOperationalInternal":{"tmp":"tmp/ipfs-block_0.8.1_1557434685118_0.9845735924255656","host":"s3://npm-registry-packages"},"_id":"ipfs-block@0.8.1","version":"0.8.1"}