Library of NodeJS

How add library of nodejs in workers

Why in the code gallery looks like an example showing a “require module”

how can I order modules ???

You must use eg. webpack to combine any require’d modules into a single file you can deploy to Workers. Just note that the majority of node modules won’t work due to either A. depend on node-specific stuff that isn’t present in Workers, or B. being slow and having their execution time go over the 10ms limit.

To get started, download wrangler and read this:

1 Like