{"_id":"unix-socket-credentials","_rev":"3018455","name":"unix-socket-credentials","description":"Get the uid, gid and pid of a client that connects to your unix socket server","dist-tags":{"latest":"0.1.3"},"maintainers":[{"name":"spion","email":"gorgi.kosev@gmail.com"}],"time":{"modified":"2023-11-06T06:31:53.000Z","created":"2013-05-20T09:57:59.597Z","0.1.3":"2013-05-20T10:30:46.223Z","0.1.2":"2013-05-20T10:01:19.108Z","0.1.1":"2013-05-20T09:57:59.597Z"},"users":{},"author":{"name":"spion"},"repository":{"type":"git","url":"git://github.com/spion/node-unix-socket-credentials.git"},"versions":{"0.1.3":{"name":"unix-socket-credentials","version":"0.1.3","description":"Get the uid, gid and pid of a client that connects to your unix socket server","main":"index.js","scripts":{"test":"tap test"},"repository":{"type":"git","url":"git://github.com/spion/node-unix-socket-credentials.git"},"keywords":["unix","socket","credentials","uid","gid","pid"],"author":{"name":"spion"},"license":"MIT","dependencies":{"ref":"~0.1.3","ffi":"~1.2.5","ref-struct":"0.0.5"},"devDependencies":{"tap":"~0.4.3"},"readmeFilename":"README.md","directories":{"test":"test"},"_id":"unix-socket-credentials@0.1.3","dist":{"shasum":"c60438a0e004d38c48c35de14fbc5d1eb19d09e4","size":1777,"noattachment":false,"key":"/unix-socket-credentials/-/unix-socket-credentials-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/unix-socket-credentials/download/unix-socket-credentials-0.1.3.tgz"},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"spion","email":"gorgi.kosev@gmail.com"},"maintainers":[{"name":"spion","email":"gorgi.kosev@gmail.com"}],"_cnpmcore_publish_time":"2021-12-23T19:46:13.051Z","publish_time":1369045846223,"_cnpm_publish_time":1369045846223},"0.1.2":{"name":"unix-socket-credentials","version":"0.1.2","description":"Get the uid, gid and pid of a client that connects to your unix socket server","main":"index.js","scripts":{"test":"tap test"},"repository":{"type":"git","url":"git://github.com/spion/node-unix-socket-credentials.git"},"keywords":["unix","socket","credentials","uid","gid","pid"],"author":{"name":"spion"},"license":"MIT","dependencies":{"ref":"~0.1.3","ffi":"~1.2.5","ref-struct":"0.0.5"},"devDependencies":{"tap":"~0.4.3"},"readmeFilename":"README.md","directories":{"test":"test"},"_id":"unix-socket-credentials@0.1.2","dist":{"shasum":"4047b81281a861265df051c898229ff019c1d12d","size":1839,"noattachment":false,"key":"/unix-socket-credentials/-/unix-socket-credentials-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/unix-socket-credentials/download/unix-socket-credentials-0.1.2.tgz"},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"spion","email":"gorgi.kosev@gmail.com"},"maintainers":[{"name":"spion","email":"gorgi.kosev@gmail.com"}],"_cnpmcore_publish_time":"2021-12-23T19:46:12.171Z","publish_time":1369044079108,"_cnpm_publish_time":1369044079108},"0.1.1":{"name":"unix-socket-credentials","version":"0.1.1","description":"Get the uid, gid and pid of a client that connects to your unix socket server","main":"index.js","scripts":{"test":"tap test"},"repository":"","keywords":["unix","socket","credentials","uid","gid","pid"],"author":{"name":"spion"},"license":"MIT","dependencies":{"ref":"~0.1.3","ref-struct":"0.0.5","ffi":"~1.2.5"},"devDependencies":{"tap":"~0.4.3"},"readmeFilename":"README.md","_id":"unix-socket-credentials@0.1.1","dist":{"shasum":"0b4c6368dcc548c1f45ddfb26bb240449e11034d","size":1720,"noattachment":false,"key":"/unix-socket-credentials/-/unix-socket-credentials-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/unix-socket-credentials/download/unix-socket-credentials-0.1.1.tgz"},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"spion","email":"gorgi.kosev@gmail.com"},"maintainers":[{"name":"spion","email":"gorgi.kosev@gmail.com"}],"directories":{},"_cnpmcore_publish_time":"2021-12-23T19:46:11.285Z","publish_time":1369043879597,"_cnpm_publish_time":1369043879597}},"readme":"# node-unix-socket-credentials\n\nGet the uid, gid and pid of a client that connects to your node.js unix socket server\n\nWriting multi-user system services in node has suddenly become much easier!\n\n# install\n\nFrom npm\n\n    npm install unix-socket-credentials\n\n# usage\n\nSync and async methods are provided:\n\nFull async example:\n\n```js\nvar uscred = require('unix-socket-credentials');\n\nvar s = net.createServer('/tmp/test.sock', function(cli) {\n    uscred.getCredentials(cli, function(err, res) {\n        // You can now use the uid/gid/pid of the client process\n        console.log(res.uid, res.gid, res.pid);\n    });\n});\n```\n\n\nShortened sync example:\n\n```js\nvar res = uscred.getCredentialsSync(cli);\nconsole.log(res.uid, res.gid, res.pid);\n```\n\n# licence\n\nMIT\n","_attachments":{},"readmeFilename":"README.md","license":"MIT"}