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

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

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

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

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

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

Use main return value as process exit code
Use main return value as process exit code
