This is actually really nifty. However can you change it to be asynchronous instead? Right now the polyglot runs synchronously.
What about the stdout/stderr... It ultimately has to give you back a child process. Could there be a spawn version that gives you the child process too?
Comments
If anyone is interested in mixing other languages in node, check out this silly little library I threw together: https://www.npmjs.com/package/polyglot-tag
Embed any scripting language in a Node.js template literal!
This is actually really nifty. However can you change it to be asynchronous instead? Right now the polyglot runs synchronously.
What about the stdout/stderr... It ultimately has to give you back a child process. Could there be a spawn version that gives you the child process too?
Ha ha you mean like this: https://www.npmjs.com/package/pipe-tag