I'm trying to write a templated user control that get's as a template the js code from the user,

And minifies it on the fly (OnInit), and actually prints the minified JS.

That means that I need a code that receives a string, and returns a string.

All I found untill know are programs that uses the input \ output from the hard-drive, something that I can't allow.

Is there any C# Libraries relevant to my issue \ need ?

Thanks all.

EDIT:

When I say minify, I just meen removing comments, spaces and obfuscation.

share|improve this question

feedback

1 Answer

Your Answer

 
or
required, but never shown
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.