Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
chunk-fetch
Advanced tools
example of how a url looks like using chunk-fetch
ipfs://someCidAsHostname/some/path
_
- hostname is ignored, url will start with the path and the path becomes the query, so ipfs://_/somepath becomes ipfs://somepath
CID
- a CID that is used for the query
method: HEAD
- does not return a body, only returns headers
hostname:
_
- ignores the hostname, path becomes the query/path/to/dir/or/file
- it can be any path including /
, this path is the query that will be used with ipfs
headers:
X-Copy
- true
| false
- if true, a directory will be created with the CID, the data will be stored inside that directory. if false, the data will be stored using the path but without the new directory.X-Timer
- String
- a number for a timeoutCID
- a CID identifier for some data
path:
/
- used for a directory,if the CID
is a directoryX-Copy
- true
| false
- if true, a directory will be created with the CID, the data will be stored inside that directory. if false, the data will be stored using the path but without the new directory.X-Timer
- String
- a number for a timeout/path/to/file
- used for a file, if the CID
is a file
headers:
X-Copy
- true
| false
- if true, a directory will be created with the CID, the data will be stored inside that directory. if false, the data will be stored using the path but without the new directory.X-Timer
- String
- a number for a timeoutmethod: GET
- return a body
hostname:
_
- ignores the hostname, path becomes the query/path/to/dir/or/file
- it can be any path including /
, this path is the query that will be used with ipfsX-Timer
- String
- a number for a timeoutCID
- a CID identifier for some data
path:
/
- used for a directory if the CID
is a directoryX-Timer
- String
- a number for a timeout/path/to/file
- used for a file, if the CID
is a file
headers:
X-Timer
- String
- a number for a timeoutmethod: POST
- return a body
hostname:
_
- ignores the hostname, path becomes the query/path/to/dir/or/file
- it can be any path including /
, this path is the query that will be used with ipfsX-Opt
- String
- options to use for the content, stringified objectmethod: DELETE
- returns a body
hostname:
_
- ignores the hostname, path becomes the query/path/to/dir/or/file
- it can be any path including /
, this path is the query that will be used with ipfsX-Opt
- String
- options to use for the content, stringified objectFAQs
Use the same `fetch()` API browsers provide for HTTP, but for IPFS
The npm package chunk-fetch receives a total of 1 weekly downloads. As such, chunk-fetch popularity was classified as not popular.
We found that chunk-fetch 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.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
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.