{"name":"ipld-block","version":"0.9.1","description":"JavaScript Implementation of IPLD Block","leadMaintainer":"Volker Mische <volker.mische@gmail.com>","main":"src/index.js","scripts":{"lint":"aegir lint","build":"aegir build","test":"aegir test","test:node":"aegir test --target node","test:browser":"aegir test --target browser","release":"aegir release --docs","release-minor":"aegir release --type minor --docs","release-major":"aegir release --type major --docs","coverage":"aegir coverage","coverage-publish":"aegir coverage --provider coveralls","docs":"aegir-docs"},"pre-push":["lint","test"],"repository":{"type":"git","url":"git+https://github.com/ipld/js-ipld-block.git"},"keywords":["IPLD"],"license":"MIT","bugs":{"url":"https://github.com/ipld/js-ipld-block/issues"},"homepage":"https://github.com/ipld/js-ipld-block#readme","devDependencies":{"aegir":"^21.4.5","chai":"^4.2.0"},"dependencies":{"buffer":"^5.5.0","cids":"~0.8.0","class-is":"^1.1.0"},"engines":{"node":">=6.0.0","npm":">=3.0.0"},"contributors":[{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"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":"Hugo Dias","email":"hugomrdias@gmail.com"},{"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"}],"gitHead":"7059cc8370e44cc9d9bc4ed73b3836acf38b0a05","_id":"ipld-block@0.9.1","_nodeVersion":"13.7.0","_npmVersion":"6.13.6","dist":{"integrity":"sha512-ypzGNd6VraQx3sU1x8w4/vJPwVKCZgRRLYuXHLJsvW/KQ9xjxN+HkcJgKw2E9up6G7c+1kIWNGnyxsPWjc27pQ==","shasum":"3931029a6445ad06dd9847aeebf6ac32e72c6b39","tarball":"http://registry-npm.ywwl.com/ipld-block/download/ipld-block-0.9.1.tgz","fileCount":11,"unpackedSize":779875,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJehH4eCRA9TVsSAnZWagAAJDoP/1nb1XshsP8lDA7moo/L\nVGtFKs3R7Uyf6HXzqPGwaq3LyWFr2/gZ3O3ez6Xqdy9S9Zuh1zIKq6e+lFbN\nGCWVMS1kKMa1rxN7mw0USGyMc+VLN+AvpxIqVXLIl5zx3PFwjKC7pWoEdDZY\naP9iSc1YXmP5Nn2XF9YLPx17Zo67a40mIgVvQdhj6xXYcfHMGVm2HBel4ky0\ngn86Z5XK7VmP8/JOsIx5GFjkBwIxu6DcpGP1CHPYgv0uAnSl/60MaFgDGAPi\nRXyhSYKyouoryJVyL0cVSPESBzvQ5NbhUzp7/bYuuUFCweqIZLnnGwdwOH7C\npV+IGuii2lijb9Qi9IArYdv3eWE/5sk5RxrZWXMPveXYqZBaG9GgxLJ4FjS+\nfa6/ThkL57cav8RLCq/GEnYRV2A6GnbbCqHm8NYCOVIIXQk4Iyt56zlQrTxt\n/Z+ETroQ9nkVAdjIBDv1wmrGJOzcKValilxXWeNBtnsoUF6w3oFaivGk/otZ\nsD45J/u+SCLj9CYypK5GpusZ3rskebBf460s7cRhxq9L3NsdQtwbdhO/90J7\nMJR0ZvNwDUlhfCRtYlV7jLfL6GV1SA1Zri/dp5uihUI/P52teQ6BOVEC+p/Q\nXYC9zZbpWtnhz5dZppi4yrw4uQ4wOZ9iFzheEh4JJx+38UNfMxx3rDOiBneu\nMe0E\r\n=3Lj3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID90UEqwRUdGYvogFfdSxh7xUmmBH/Jm3xQibZWxNhsxAiBpAUPuZGAVPx0IMBcFWO316cjn1iKgrYSppJ2MaijU5g=="}],"size":174649,"noattachment":false,"key":"/ipld-block/-/ipld-block-0.9.1.tgz"},"maintainers":[{"name":"vmx","email":"volker.mische@gmail.com"}],"_npmUser":{"name":"vmx","email":"volker.mische@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipld-block_0.9.1_1585741341487_0.24751567674486719"},"_hasShrinkwrap":false,"readme":"# IPLD 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-IPLD-blue.svg?style=flat-square)](http://ipld.io/)\n[![](https://img.shields.io/badge/freenode-%23ipld-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipld)\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/ipld/js-ipld-block)](https://travis-ci.com/ipld/js-ipld-block)\n[![Coverage Status](https://coveralls.io/repos/github/ipld/js-ipld-block/badge.svg?branch=master)](https://coveralls.io/github/ipld/js-ipld-block?branch=master)\n[![Dependency Status](https://david-dm.org/ipld/js-ipld-block.svg?style=flat-square)](https://david-dm.org/ipld/js-ipld-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> [IPLD][ipld] implementation of the Block data structure in JavaScript.\n\n**Block** - A block is a blob of binary data combined with a [CID].\n\n## Lead Maintainer\n\n[Volker Mische](https://github.com/vmx)\n\n## Table of Contents\n\n- [IPLD Block JavaScript Implementation](#ipld-block-javascript-implementation)\n  - [Lead Maintainer](#lead-maintainer)\n  - [Table of Contents](#table-of-contents)\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 ipld-block\n```\n\n## Usage\n\n### Node.js\n\n```js\nconst Block = require('ipld-block')\n```\n\n#### Example\n\n```js\nconst Block = require('ipld-block')\nconst encoder = new TextEncoder('utf8')\n\n// create a block\nconst block = new Block(encoder.encode('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('ipld-block')\n```\n\n### Browser: `<script>` Tag\n\nLoading this module through a script tag will make the `IpldBlock` obj available in\nthe global namespace.\n\n```html\n<script src=\"https://unpkg.com/ipld-block/dist/index.min.js\"></script>\n<!-- OR -->\n<script src=\"https://unpkg.com/ipld-block/dist/index.js\"></script>\n```\n\n## API\n\n```js\nconst Block = require('ipld-block')\n```\n\n### Block\n\n#### `new Block(data, cid)`\n\n- `data: Uint8Array`\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[ipld]: https://ipld.io/\n[multihash]: https://github.com/multiformats/js-multihash\n[CID]: https://github.com/multiformats/js-cid\n\n## Contribute\n\nFeel free to join in. All welcome. Open an [issue](https://github.com/ipld/js-ipld-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","publish_time":1585741341783,"_cnpm_publish_time":1585741341783,"dist-tags":{"latest":"0.11.1"}}