i want to be able to execute JavaScript on the server side which is running the .net environment.
so how is it possible to do so?
mainly i need text processing functions, i will input a string and get a string returned from JavaScript code.
no window interaction is needed.
i want to be able to execute JavaScript on the server side which is
Share
Yes, there are several JS engines which you can use. Jurassic, Jint and IronJS are .NET-based, but you can also interface to others such as the V8 from the Chrome browser or the ActiveScript from IE.
EDIT: Five years later the JS engines native to .NET are somewhat lagging behind (none supports ES6 yet, and IronJS seems abandoned), but we now also have the open-source ChakraCore which is not very hard to integrate and use in .NET with one of the readily available wrappers.
Also, the JavaScriptEngineSwitcher allows using almost any of the existing JS engines from within .NET code through a common interface, so that switching engines does not need changing code.