Features
- Execute javascript, load & render HTML pages with SlimerJS tool from .NET application
- Wrapper provides .NET API for:
- running SlimerJS process (from a file or just javascript code string)
- providing input data through stdin
- reading result (text or binary) from stdout
- Useful for executing javascript code on server-side in real web context
- Easy to use: just install NetSlimerJS nuget package
How to use
- Install NetSlimerJS nuget package
- Execute javascript with one line of C# code:
var runner = new SlimerJS();
runner.OutputReceived += (sender, e) => {
Console.WriteLine("SlimerJS output: {0}", e.Data);
};
runner.RunScript("console.log('Hello from js'); slimer.exit();", null);
Read more