| ▲ | supernes 7 hours ago | ||||||||||||||||
You can make it more explicit by renaming the import to something like "shell_exec". Tagged templates are already pretty common in TS projects for things like gql or sql queries. | |||||||||||||||||
| ▲ | throwaway290 7 hours ago | parent [-] | ||||||||||||||||
tagged template does not cause execution of given string. tagged template is just a function and in this case it's simply a proxy for console.log() which also doesn't cause execution of given string. so how does it get executed? unless it was just an example and you are supposed to switch in $ from some third party library... which is another dependency in addition to deno... and which can be shai-huluded anytime or you may be offline and cannot install it when you run the script? | |||||||||||||||||
| |||||||||||||||||