3 ms·
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 http
by foreigner 4y ago
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 https://www.npmjs.com/package/polyglot-tag
Embed any scripting language in a Node.js template literal!
- CMCDragonkai 4y agoThis 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?
- foreigner 4y agoHa ha you mean like this: https://www.npmjs.com/package/pipe-tag https://www.npmjs.com/package/pipe-tag