Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spawn: allow setting environment variables in options #14

Open
Wyatt-Stanke opened this issue Sep 5, 2022 · 1 comment
Open

spawn: allow setting environment variables in options #14

Wyatt-Stanke opened this issue Sep 5, 2022 · 1 comment

Comments

@Wyatt-Stanke
Copy link

Feature request--allow to specify environment variables in spawn.
For example:

import { spawn } from "bun-utilities/spawn";

spawn("echo", ["$VAR"], { env: { VAR: "example" } })

This is implemented in node.

@xhyrom
Copy link
Owner

xhyrom commented Sep 6, 2022

Thanks for idea, I'll implement it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants