https://github.com/legraphista/expose-gc
Expose gc without passing the arg param
https://github.com/legraphista/expose-gc
Last synced: about 1 month ago
JSON representation
Expose gc without passing the arg param
- Host: GitHub
- URL: https://github.com/legraphista/expose-gc
- Owner: legraphista
- License: mit
- Created: 2018-07-24T14:23:54.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-24T14:42:28.000Z (almost 7 years ago)
- Last Synced: 2024-11-11T18:51:29.671Z (7 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 18
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Expose GC at runtime!
_Have your cake and eat it too_If for some reason you don't have access to how node is started or you haven't bothered with setting v8 flags, this module exposes the real `gc` for you.
## Install
`npm i expose-gc`## I want my GC to be global!
```js
require('expose-gc');global.gc();
```## I just want a function, no global please!
```
const gc = require('expose-gc/function');gc();
```