#!/usr/bin/env node
'use strict'

const main = require('./lib/main')

if (require.main === module) {
  main()
}

@@ -100,13 +100,27 @@
 %7B%0A  
+process.exit(
 main()
+)
 %0A%7D%0A

Use main return value as process exit code