I need to use some modules like fs or crypto. It's easy for me to achieve that with Nan by using module varible. Is there any way to do the same?
Activity
gabrielschulhof commentedon Jun 27, 2019
You can write a function that accepts another module. Here's a gist with an example.
mhdawson commentedon Dec 7, 2020
Going to close this out as the question was answered and there was no follow on question. Please let us know if that was not the right thing to do.