expose-gc

1.0.0 • Public • Published

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();

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i expose-gc

      Weekly Downloads

      16,044

      Version

      1.0.0

      License

      MIT

      Unpacked Size

      2.44 kB

      Total Files

      5

      Last publish

      Collaborators

      • stefangab95