Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
ipfs-utils
Advanced tools
Package to aggregate shared logic and dependencies for the IPFS ecosystem
Package to aggregate shared logic and dependencies for the IPFS ecosystem
$ npm i ipfs-utils
<script>
tagLoading this module through a script tag will make it's exports available as IpfsUtils
in the global namespace.
<script src="https://unpkg.com/ipfs-utils/dist/index.min.js"></script>
ipfs-utils
aims to provide single function default export per file (with a few exceptions) scoped in 3 general categories:
General use and Data structs wrangling should try to be just re-exports of community packages.
The IPFS ecosystem has lots of repos with it comes several problems like:
These problems are the motivation for this package, having shared logic in this package avoids creating cyclic dependencies, centralizes common use modules/functions (exactly like aegir does for the tooling), semantic versioning for 3rd party dependencies is handled in one single place (a good example is going from streams 2 to 3) and maintainers should only care about having ipfs-utils
updated.
Each function should be imported directly.
const validateAddInput = require('ipfs-utils/src/files/add-input-validation')
validateAddInput(Buffer.from('test'))
// true
Licensed under either of
Contributions welcome! Please check out the issues.
Also see our contributing document for more information on how we work, and about contributing in general.
Please be aware that all interactions related to this repo are subject to the IPFS Code of Conduct.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
FAQs
Package to aggregate shared logic and dependencies for the IPFS ecosystem
The npm package ipfs-utils receives a total of 42,969 weekly downloads. As such, ipfs-utils popularity was classified as popular.
We found that ipfs-utils 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.