continuous-stealthy-require
v2.0.0
Published
Requires a fresh, uncached module without causing a memory leak
Downloads
256
Maintainers
Readme
continuous-stealthy-require
Like stealthy-require
, but with a build-in workaround to avoid a memory leak when running stealthyRequire
multiple times.
Install
npm install continuous-stealthy-require
Usage
const continuousStealthyRequire = require('continuous-stealthy-require')
continuousStealthyRequire('fs')
API
Parameters
path
{String}
Module name or path to a module.
Returns
requiredModule
{*}
Fresh, uncached module.