Skip to content
File

Blob: samples/nodejs-compat-streams-split2/README.md

Markdown36 lines

Node.js Compat Example

To run the example on http://localhost:8080

$ bazel-bin/src/workerd/server/workerd serve --experimental $(realpath samples/nodejs-compat-streams-split2/config.capnp)

To run using bazel

$ bazel run //src/workerd/server:workerd -- serve $(realpath samples/nodejs-compat-streams-split2/config.capnp)

To create a standalone binary that can be run:

$ ./workerd compile config.capnp > nodejs-compat

$ ./nodejs-compat

To test:

% curl http://localhost:8080
hello
from
the
wonderful
world
of
node.js
streams!