TransWikia.com

Is there any way to access an internal Node.js module?

Stack Overflow Asked by vilicvane on December 11, 2021

By "internal" I mean something like internal/process/esm_loader.

I’ve tried process, require('module') but cannot find a way out.

One Answer

Yes, you can by starting node with the --expose-internals option. There is no documented API so using internal modules may not continue to work from one nodejs release to another.

Answered by bmacnaughton on December 11, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP