https://github.com/electerious/continuous-stealthy-require
Requires a fresh, uncached module without causing a memory leak.
https://github.com/electerious/continuous-stealthy-require
Last synced: about 1 year ago
JSON representation
Requires a fresh, uncached module without causing a memory leak.
- Host: GitHub
- URL: https://github.com/electerious/continuous-stealthy-require
- Owner: electerious
- License: mit
- Created: 2018-11-07T15:44:34.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-10-01T13:59:18.000Z (over 3 years ago)
- Last Synced: 2025-04-18T06:45:03.491Z (about 1 year ago)
- Language: JavaScript
- Size: 11.7 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# continuous-stealthy-require
 [](https://coveralls.io/github/electerious/continuous-stealthy-require?branch=master)
Like [`stealthy-require`](https://github.com/analog-nico/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
```js
const continuousStealthyRequire = require('continuous-stealthy-require')
continuousStealthyRequire('fs')
```
## API
### Parameters
- `path` `{String}` Module name or path to a module.
### Returns
- `requiredModule` `{*}` Fresh, uncached module.