I'm currently working on developing a templated user control that accepts JavaScript code as a template input from the user.
My goal is to minify this code on the fly during the OnInit phase and then display the minified version of the JS.
This requires a function that takes a string as input and outputs a minified string.
However, all the solutions I have come across so far involve reading from and writing to the hard drive, which I cannot allow in my project.
Are there any C# libraries that address this specific requirement or need?
Thank you for your help.
EDIT:
By 'minify', I simply mean removing comments, spaces, and obfuscation.