get-peercred
v1.0.0
Published
Get SO_PEERCRED from a connected UNIX domain socket
Downloads
6
Readme
get-peercred
Retrieve SO_PEERCRED
information from a connected UNIX domain socket.
var getCred = require("get-peercred");
getCred(socket._handle.fd); // => { pid: 11115, uid: 1000, gid: 1000 }