Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 330 Bytes

README.md

File metadata and controls

18 lines (12 loc) · 330 Bytes

gc-auto

Triggers garbage collection task if --expose-gc provided to node process

Usage

require('gc-auto')

// your code that consumes memory here

then $ node --expose-gc my-file.js

You also can pass interval parameter to gc-auto like this

require('gc-auto')(3000) // every 3 seconds