The docs say that the compiler can be called programatically using the cli/asc.js API. But there are situations where it may crash and instead of throwing an Error which could be caught, this module calls process.exit. This limits the contexts that could embed directs calls to this API. I think either there should be an API option not to call exit on crash, or the docs should state that the API should only be called in a subprocess.