Prompt Buddy logoPrompt Buddy

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.

Import to Prompt Buddy

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

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-runtime-apis-nodejs-process-workflow-guide.mdDocumentation 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.textA 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.textA 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.textA 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

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. 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