File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -224,8 +224,8 @@ $ node --permission --allow-env=* --allow-fs-read=* -p 'process.env.HOME'
224224Environment variable permissions can be checked programmatically:
225225
226226``` js
227- process .permission .has (' env' ); // true if any env access is allowed
228- process .permission .has (' env' , ' HOME' ); // true if HOME is allowed
227+ process .permission .has (' env' ); // True if any env access is allowed
228+ process .permission .has (' env' , ' HOME' ); // True if HOME is allowed
229229```
230230
231231Attempting to write a restricted variable throws:
Original file line number Diff line number Diff line change 11CUSTOM_VARIABLE = hello-world
22NODE_NO_WARNINGS = 1
3- NODE_OPTIONS = " --permission --allow-fs-read=*"
3+ NODE_OPTIONS = " --permission --allow-fs-read=* --allow-env=* "
44TZ = Pacific/Honolulu
55UV_THREADPOOL_SIZE = 5
66BASIC = overridden
You can’t perform that action at this time.
0 commit comments