FileNode.js 'node:fs' +
Blob: samples/nodejs-compat-fs-graceful/README.md
Node.js 'node:fs' + graceful-fs Compat Example
Demonstrates the use of the node:fs built-in and the use of the graceful-fs
module from npmjs being used in a worker without the need for any polyfills or
modifications to graceful-fs.
To run the example on http://localhost:8080
$ ./workerd serve config.capnpTo run using bazel
$ bazel run //src/workerd/server:workerd -- serve ~/cloudflare/workerd/samples/nodejs-compat/config.capnpTo create a standalone binary that can be run:
$ ./workerd compile config.capnp > nodejs-compat
$ ./nodejs-compatTo test:
% curl http://localhost:8080
Hello World