This repo demonstrates calling Purescript from Javascript through the output.
Also features a worse version that works with things directly.
If you use some kind of tool that expects to read in some funky-named exports on Node, you might be interested in this approach.