Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
ipfs-http-response
Advanced tools
Creates an HTTP response from an IPFS Hash
npm install ipfs-http-response
This project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.
import { getResponse } from 'ipfs-http-response'
const result = await getResponse(ipfsNode, ipfsPath)
console.log(result)
This module also exports the used ipfs resolver
, which should be used when the response needs to be customized or non-HTTP transport is used:
import { resolver } from 'ipfs-http-response'
const result = await resolver.cid(ipfsNode, ipfsPath)
console.log(result)
If ipfsPath
points at a directory, resolver.cid
will throw Error This dag node is a directory
with a cid
attribute that can be passed to resolver.directory
:
import { resolver } from 'ipfs-http-response'
const result = await resolver.directory(ipfsNode, ipfsPath, cid)
console.log(result)
result
will be either a string
with HTML directory listing or an array with CIDs of index
pages present in inspected directory.
FAQs
Creates an HTTP response from an IPFS Hash
The npm package ipfs-http-response receives a total of 844 weekly downloads. As such, ipfs-http-response popularity was classified as not popular.
We found that ipfs-http-response 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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.