
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
pure-ipfs-only-hash
Advanced tools
Fork of ipfs-only-hash
without rabin-wasm
dependency.
Just enough code to calculate the IPFS hash for some data
Calculate the IPFS hash for some data without having to install or run an IPFS node. Try it out with npx:
npx pure-ipfs-only-hash <path to file>
npm i --only=production pure-ipfs-only-hash
From the command line
pure-ipfs-only-hash <file>
# or pipe in
echo "hello world" | pure-ipfs-only-hash
As a library
const Hash = require('pure-ipfs-only-hash')
const data = 'hello world!'
const hash = await Hash.of(data)
console.log(hash) // QmTp2hEo8eXRp6wg7jXv1BLCMh5a4F3B7buAUZNZUu772j
const Hash = require('pure-ipfs-only-hash')
Hash.of(input, options?): Promise<string>
Calculate the hash for the provided input.
input
(string|Uint8Array|AsyncIterable<Uint8Array>
): The input bytes to calculate the IPFS hash for. Note that Node.js readable streams are async iterable!options
(Object
): Optional options passed directly to the pure-ipfs-unixfs-importer
module. See the API docs for possible values.Feel free to dive in! Open an issue or submit PRs.
MIT © Alan Shaw
FAQs
Just enough code to calculate the IPFS hash for some data
The npm package pure-ipfs-only-hash receives a total of 13 weekly downloads. As such, pure-ipfs-only-hash popularity was classified as not popular.
We found that pure-ipfs-only-hash demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.