The CommonJS idiom here is `if (module === require.main)`.