4 ms·
>> This allows you to do really crazy things like define modules dynamically In python there's a library called "sh" and it has a novelty interface: from
by CraigJPerry 11y ago
>> This allows you to do really crazy things like define modules dynamically
In python there's a library called "sh" and it has a novelty interface:
from sh import ls, pwd, my_unique_command
print ls('/dir')
...
I wondered (not enough to check right enough) if something similar could be done in JS. Although due to the async nature of such a call, it might not end up looking so familiar with JS in practice i guess.