preload-required-module.js 270 B

12345678910111213
  1. try {
  2. const types = {
  3. process: typeof process,
  4. setImmediate: typeof setImmediate,
  5. global: typeof global,
  6. Buffer: typeof Buffer,
  7. 'global.Buffer': typeof global.Buffer
  8. }
  9. console.log(JSON.stringify(types))
  10. } catch (e) {
  11. console.log(e.message)
  12. }