Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
ipfs-block
Advanced tools
IPFS implementation of the Block data structure in JavaScript.
Block - A block is a blob of binary data.
> npm install ipfs-block
const Block = require('ipfs-block')
const Block = require('ipfs-block')
// create a block
const block = new Block(new Buffer('hello world'), cid)
console.log(block.data.toString())
The code published to npm that gets loaded on require is in fact a ES5 transpiled version with the right shims added. This means that you can require it and use with your favourite bundler without having to adjust asset management process.
const Block = require('ipfs-block')
<script>
TagLoading this module through a script tag will make the IpfsBlock
obj available in
the global namespace.
<script src="https://unpkg.com/ipfs-block/dist/index.min.js"></script>
<!-- OR -->
<script src="https://unpkg.com/ipfs-block/dist/index.js"></script>
const Block = require('ipfs-block')
new Block(data, cid)
data: Buffer
Creates a new block with raw data data
.
block.data
The raw data of the block. Its format matches whatever was provided in its constructor.
block.cid
The cid of the block.
Feel free to join in. All welcome. Open an issue!
This repository falls under the IPFS Code of Conduct.
FAQs
JavaScript Implementation of IPFS Block
The npm package ipfs-block receives a total of 4,161 weekly downloads. As such, ipfs-block popularity was classified as popular.
We found that ipfs-block demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.