Package Exports
- expose-gc
- expose-gc/function
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (expose-gc) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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!
require('expose-gc');
global.gc();
I just want a function, no global please!
const gc = require('expose-gc/function');
gc();