So, what to do? Node.js of course. Why? It’s fast, it’s super-easy to install and writing a script on top of it is a breeze. Meet Yoke:
To use, copy the script above on
$PATH and then:
yoke [-I path[ -I path]...] input.js > output.js
In most cases, you would just need to replace your existing
sprocketize command with
"file" requires are supported.