
Product
Introducing Pull Request Stories to Help Security Teams Track Supply Chain Risks
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
cloudflare-fs
Advanced tools
This package implements an opinionated durable object powered file-system that aims to replicate the exact node `fs/promises` api and make it available in workers.
This package implements an opinionated durable object powered file-system that aims to replicate the exact node fs/promises
api and make it available in workers.
npm i cloudflare-fs
Usage:
// worker.js
import { writeFile, DOFS } from "cloudflare-fs";
export { DOFS };
export default {
fetch: async (request) => {
await writeFile("/latest-request.txt", request.url, "utf8");
return new Response("written!");
},
};
Add to your wrangler.toml
[[durable_objects.bindings]]
name = "DOFS"
class_name = "DOFS"
[[migrations]]
tag = "v1"
new_sqlite_classes = ["DOFS"]
createReadStream
, createWriteStream
readFileSync
, writeFileSync
, etc.watch
, watchFile
link
, symlink
, readlink
, chmod
, chown
open
, close
, read
, write
with fd/Users/{username}
becomes its own disk (DO)FAQs
This package implements an opinionated durable object powered file-system that aims to replicate the exact node `fs/promises` api and make it available in workers.
The npm package cloudflare-fs receives a total of 4 weekly downloads. As such, cloudflare-fs popularity was classified as not popular.
We found that cloudflare-fs demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.