From d99a52aae3cc98b0f67569673f115ec715bfffa9 Mon Sep 17 00:00:00 2001 From: Jim Higson Date: Wed, 14 Aug 2024 20:55:55 +0100 Subject: [PATCH] Update input.md (#1145) --- docs/input.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/input.md b/docs/input.md index ea50ab8dc0..5d24c3f209 100644 --- a/docs/input.md +++ b/docs/input.md @@ -34,9 +34,9 @@ If the subprocess spawns its own subprocesses, they inherit environment variable ```js // Keep the current process' environment variables, and set `NO_COLOR` -await execa({env: {NO_COLOR: 'true'})`node child.js`; +await execa({env: {NO_COLOR: 'true'}})`node child.js`; // Discard the current process' environment variables, only pass `NO_COLOR` -await execa({env: {NO_COLOR: 'true'}, extendEnv: false)`node child.js`; +await execa({env: {NO_COLOR: 'true'}, extendEnv: false})`node child.js`; ``` If the subprocess is a Node.js file, environment variables are available using [`process.env`](https://nodejs.org/api/process.html#processenv).