expose-gc

v1.0.0
Expose GC at runtime without access to comamnd node flags in command line
expose gc runtime expose-gc

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();
npm i expose-gc

Metadata

  • MIT
  • >=4
  • Stefan-Gabriel Muscalu
  • released 7/24/2018

Downloads

Maintainers