Skip to content

v1.3.0

Choose a tag to compare

@nenjack nenjack released this 02 Jul 11:05
· 5 commits to main since this release
4eab442

ready stable version. it does what it should.

there is github workflow to run tests, they pass on last 3 LTS node versions printing a pretty

[OOM] Sorry but you used 4 MB

the ready function can but doesn't have to be async, and is optional, actually you can use something like

const euthanasia = require("euthanasia")

// check is memory usage > than 256 MB, every minute
euthanasia(256)

to achieve the same base example as in README

or you can

euthanasia(0, 1000, console.log)

to monitor your memory every second without quitting (console.log returns evaluates to false)