{"_id":"time-node","_rev":"4171153","name":"time-node","description":"Simple wrapper around node-timeago","dist-tags":{"latest":"0.0.1"},"maintainers":[{"name":"dpweb","email":""}],"time":{"modified":"2026-03-01T21:17:26.000Z","created":"2012-12-11T17:15:41.417Z","0.0.1":"2012-12-11T17:15:41.417Z"},"users":{},"author":{"name":"C Borkert","email":"ILIKECHEESE@dpsw.info"},"repository":{"type":"git","url":"git://github.com/dpweb/time-node.git"},"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","_id":"time-node@0.0.1","dist":{"shasum":"6cc947f74640a20df9ab3fd05b1f6f3b8aa3ed96","size":2004,"noattachment":false,"key":"/time-node/-/time-node-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/time-node/download/time-node-0.0.1.tgz"},"_npmVersion":"1.1.59","_npmUser":{"name":"dpweb","email":"me@dpsw.info"},"maintainers":[{"name":"dpweb","email":""}],"directories":{},"_cnpmcore_publish_time":"2021-12-23T19:24:25.856Z","publish_time":1355246141417,"_cnpm_publish_time":1355246141417}},"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","_attachments":{}}