Skip to content

Instantly share code, notes, and snippets.

@trbngr
Created August 17, 2010 17:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trbngr/531086 to your computer and use it in GitHub Desktop.
Save trbngr/531086 to your computer and use it in GitHub Desktop.
var context = new CrusherContext();
var source = new FileSource(new FileInfo("your js file"));
IEngine engine = context.GetDefaultEngineFor(source);
ICrushResult result = engine.TransformSource(source);
//stream back result.Result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment