cloudflare · Cloudflare Workers Docs
Workers process
Explains how to use the Node.js process module within Cloudflare Workers, including managing environment variables via process.env, using process.nextTick, and configuring the nodejs_compat compatibility flag.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Workers process
Explains how to use the Node.js process module within Cloudflare Workers, including managing environment variables via process.env, using process.nextTick, and configuring the nodejs_compat compatibility flag.
When To Use
Use when you need to access environment variables, manage process-level event handling, or migrate Node.js code that relies on the process module to a Cloudflare Workers environment.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/workers-runtime-apis-nodejs-process-workflow-guide.md | Documentation detailing the Node.js process API polyfills and compatibility requirements for Cloudflare Workers. | Questions about documentation detailing the Node.js process API polyfills and compatibility requirements for Cloudflare Workers. |
examples/workers-runtime-apis-nodejs-process-cloudflare-workers-nodejs-process-en.text | A JavaScript code example demonstrating how to map environment variables from the Workers env object to the node:process.env object. | Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to map environment variables from the Workers env object to the node:proc... |
examples/workers-runtime-apis-nodejs-process-cloudflare-workers-nodejs-process-en-2.text | A demonstration of how the node:process module interacts with the Cloudflare Workers env object and the consequences of reassigning process.env. | Exact payloads, commands, or snippets shown in A demonstration of how the node:process module interacts with the Cloudflare Workers env object and the consequences... |
examples/workers-runtime-apis-nodejs-process-cloudflare-workers-nodejs-process-en-3.text | A text example demonstrating the usage of env and nextTick from the node:process module within a Cloudflare Workers environment. | Exact payloads, commands, or snippets shown in A text example demonstrating the usage of env and nextTick from the node:process module within a Cloudflare Workers e... |
What This Skill Covers
- To enable built-in Node.js APIs and polyfills, add the nodejs\compat compatibility flag to your Wrangler configuration file. This also enables nodejs\compat...
- Main sections:
process.env,Alternative: Import env from cloudflare:workers,process.nextTick(),Stdio,Current Working Directory.
Workflow
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - Do not add behavior or configuration that is not present in the attached source files.
Canonical source: https://developers.cloudflare.com/workers/runtime-apis/nodejs/process
