Usage of npm scala-node

I want to use scala object in node js as one of the modules. After some investigation, I found this npm plugin called scala-node (not sure if this will work).

But I don't know how to use it. It would be helpful if I get few examples if someone has used it to understand the functioning of this plugin.

Answers


How much do you want this library?

scala-node is for node interop with scala.js, which is another "compile to js" project, this time using scala. If you manage to compile this scala library with scala.js (may be a headache, depending on its dependencies). You might then need scala-node to modularize the compile scala.js? Not sure.

Probably be easier to have an application in scala that your node.js application communicates with. What library are you wanting to take advantage of?


Need Your Help

LINQ query to perform a projection, skipping or wrapping exceptions where source throws on IEnumerable.GetNext()

c# linq exception-handling ienumerable word-wrap

I'd like a general solution but as an example, assume i have an IEnumerable<string>, where some can be parsed as integers, and some cannot.