1

Do you know of a .NET library for generating javascript code?

I want to generate javascript code based on information in my .NET application. I would like to be able to create an AST-like datastructure (using C#) and have it turned into valid javascript. I need to be able to create functions, statements, expressions etc., so I need something more than a JSON serializer - but I guess you could think of this as a (very) generalized JSON serializer.

Do such libraries exist and if so, could you recommend any?

Thank you.

1 Answer 1

5

There's a couple I'm aware of (though have not used):

  1. Script#
  2. JSC

I hope one is of use to you.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.