Skip to content

Alex0007/gc-auto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Autotriggers garbage collection in node application

Resources

Stars

Watchers

Forks

Packages

No packages published