8000 Explicitly import `process` by guybedford · Pull Request #121 · chalk/supports-color · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Explicitly import process #121

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 8000 to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 19, 2021
Merged

Explicitly import process #121

merged 1 commit into from
Jul 19, 2021

Conversation

guybedford
Copy link
Contributor

This explicitly imports process in this package. I was just experimenting getting this package to work in Deno, and it's nice to be able to support Node.js packages in Deno using just import maps without having to require eg the process global to be defined (since it's also kind of a security hole as well).

This behaviour is documented as recommended in https://nodejs.org/dist/latest-v16.x/docs/api/process.html#process_process as well.

@sindresorhus
Copy link
Member

Good idea. I'm going to enforce this soon: xojs/xo@9f40074

8000

@sindresorhus sindresorhus changed the title feat: explicitly import process Explicitly import process Jul 19, 2021
@sindresorhus sindresorhus merged commit 99eb482 into chalk:main Jul 19, 2021
sindresorhus pushed a commit that referenced this pull request Jul 19, 2021
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

Successfully merging this pull request may close these issues.

2 participants
2A38
0