{"_id":"time-node","_rev":"5-7df5f8b73156bcd0339eb4d55a162d96","name":"time-node","description":"Simple wrapper around node-timeago","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"time-node","description":"Simple wrapper around node-timeago","url":"http://github.com/dpweb/time-node/","keywords":["util","nodejs"],"author":{"name":"C Borkert","email":"ILIKECHEESE@dpsw.info"},"dependencies":{},"main":"time-node","repository":{"type":"git","url":"git://github.com/dpweb/time-node.git"},"version":"0.0.1","readme":"###clients-node    \r\nAdds app.clients to Expressjs showing recently connected clients  \r\n    \r\n\r\n###app.js\r\n````js\r\n\tvar express = require('express'), app = express();\r\n\tvar server = require('http').createServer(app)\r\n \tserver.listen(85);\r\n\r\n \trequire('./clients-node.js')(app, timeoutsec=5);\r\n \t// app.clients is a list of recently connected clients\r\n\r\n \tapp.get('/', function(r,s){\r\n \t\t// show clients list\r\n \t\ts.send(app.clients)\r\n \t})\r\n\r\n \t// In 10 seconds, the clients should be gone from the list\r\n \tsetTimeout(function(){console.log(app.clients)}, 10000)\r\n````\r\n","_id":"time-node@0.0.1","dist":{"shasum":"6cc947f74640a20df9ab3fd05b1f6f3b8aa3ed96","tarball":"https://registry.npmjs.org/time-node/-/time-node-0.0.1.tgz","integrity":"sha512-jktKT0U0+axuyTwV/c30/Ke/oMh6VNIGPg0OmYRsF6qA6RKOUJYHU4NzBO2YGbRFRCfaeI83/FIK84Z1y0NvOQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAaCOtiqJ8NhPm+MVjX4o84M2UYn/UjBWwCNGpf+Y0F1AiEAq/F3Uvvgk28Ls9T4zjwP7Ef0suit/tKwcwa8ESZup4s="}]},"_npmVersion":"1.1.59","_npmUser":{"name":"dpweb","email":"me@dpsw.info"},"maintainers":[{"name":"dpweb","email":"me@dpsw.info"}]}},"readme":"###clients-node    \r\nAdds app.clients to Expressjs showing recently connected clients  \r\n    \r\n\r\n###app.js\r\n````js\r\n\tvar express = require('express'), app = express();\r\n\tvar server = require('http').createServer(app)\r\n \tserver.listen(85);\r\n\r\n \trequire('./clients-node.js')(app, timeoutsec=5);\r\n \t// app.clients is a list of recently connected clients\r\n\r\n \tapp.get('/', function(r,s){\r\n \t\t// show clients list\r\n \t\ts.send(app.clients)\r\n \t})\r\n\r\n \t// In 10 seconds, the clients should be gone from the list\r\n \tsetTimeout(function(){console.log(app.clients)}, 10000)\r\n````\r\n","maintainers":[{"name":"dpweb","email":"me@dpsw.info"}],"time":{"modified":"2022-06-27T06:44:17.971Z","created":"2012-12-11T17:15:39.366Z","0.0.1":"2012-12-11T17:15:41.417Z"},"author":{"name":"C Borkert","email":"ILIKECHEESE@dpsw.info"},"repository":{"type":"git","url":"git://github.com/dpweb/time-node.git"}}