berstend / node-safe

🤠 Make using Node.js safe again with Deno-like permissions
https://node-safe.com
203 stars 8 forks source link

add missing variables #13

Open azerum opened 1 year ago

azerum commented 1 year ago

flagForceColor and hasFlag() were not defined. I've copy-pasted them from the original source

Considering that the comment on top of src/utils/terminal.js says "Lifted and modified from: https://github.com/chalk/supports-color/blob/main/index.js (MIT)", I am not sure there were some modifications in mind related to those variables