Licence
—
Version
0.1.2
Deps
0
Vulns
0
Weekly
0
Shell Trigger
About
It could happen to anyone. You've logged into shell on your production node.js server. You've executed Unix's last command—to see when you last logged in. Now you're having one of those heart-in-mouth moments as you see someone—apparently, but definitely not, you—logged in at 2am this morning. You were asleep then.
Shell Trigger executes a callback, and can kill the node process entirely, when a change is detected in the users list.
Install
npm install shell-trigger
Usage
options = {cb: -> console.log 'intrusion detected'}
trigger = require('shell-trigger')(options)