{"_id":"wadey-ranger","_rev":"5-81ee181bc21dbb20d13675c4491597a4","name":"wadey-ranger","description":"wadey's fork of: A node.js library for interacting with Campfire","dist-tags":{"latest":"0.3.8"},"versions":{"0.2.4":{"name":"wadey-ranger","description":"wadey's fork of: A node.js library for interacting with Campfire","keywords":["campfire","chat","api"],"contributors":[{"name":"Matt Duncan","email":"matt@mattduncan.org","url":"http://mattduncan.org"},{"name":"Wade Simmons","email":"wade@wades.im","url":"http://wades.im/mons"}],"repository":{"type":"git","url":"git://github.com/wadey/ranger.git"},"bugs":{"url":"http://github.com/wadey/ranger/issues"},"licenses":[{"type":"MIT","url":"http://github.com/wadey/ranger/raw/master/LICENSE"}],"lib":"lib","main":"./lib/ranger","version":"0.2.4","engines":{"node":"0.4 || 0.5"},"homepage":"http://github.com/wadey/ranger","directories":{"lib":"lib"},"_npmJsonOpts":{"file":"/Users/wade/.npm/wadey-ranger/0.2.4/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"wadey-ranger@0.2.4","dependencies":{},"devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.26","_nodeVersion":"v0.4.11","_defaultsLoaded":true,"dist":{"shasum":"5f71485f8f2ab177b5bc906a4c1cbe1544962b41","tarball":"https://registry.npmjs.org/wadey-ranger/-/wadey-ranger-0.2.4.tgz","integrity":"sha512-jpoluWsDQeLzrF4YcTgOfw1n/Abr54CP0USokvN++VmM0BaHEeAkgvAJH6fE+3NLllWeKkkboK3uczex/2z+Sw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCygCsCxMixro6M496AFxCWMcodV7BjdlFh7GSDwEWyDQIgaOJTk1c4a/JxEfwEJtCu+59L1wvQ/PNaSHMV9Q1keb0="}]},"scripts":{},"maintainers":[{"name":"wadey","email":"wade@wades.im"}]},"0.3.0":{"name":"wadey-ranger","description":"wadey's fork of: A node.js library for interacting with Campfire","keywords":["campfire","chat","api"],"contributors":[{"name":"Matt Duncan","email":"matt@mattduncan.org","url":"http://mattduncan.org"},{"name":"Wade Simmons","email":"wade@wades.im","url":"http://wades.im/mons"}],"repository":{"type":"git","url":"git://github.com/wadey/ranger.git"},"bugs":{"url":"http://github.com/wadey/ranger/issues"},"licenses":[{"type":"MIT","url":"http://github.com/wadey/ranger/raw/master/LICENSE"}],"lib":"lib","main":"./lib/ranger","version":"0.3.0","engines":{"node":"0.4 || 0.5"},"homepage":"http://github.com/wadey/ranger","directories":{"lib":"lib"},"_npmJsonOpts":{"file":"/Users/wade/.npm/wadey-ranger/0.3.0/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"wadey-ranger@0.3.0","dependencies":{},"devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.27","_nodeVersion":"v0.4.11","_defaultsLoaded":true,"dist":{"shasum":"9639a018f455ef30e87eeacb2999f21232e8f9de","tarball":"https://registry.npmjs.org/wadey-ranger/-/wadey-ranger-0.3.0.tgz","integrity":"sha512-SZs2spXbVkR3bkV0yaHRhRyNr12E8L7LLEoMjju1EW1eK5qWGbLO1xlGqC/NCgJL/5kSe/Tq4zzm13hDo6zz8Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCppKqHpDK+c++qG8Q1YPmjidxJ/sYLJ7zc128DvepbXQIgPLI7qky09pepYa/G9+0pmkMJKbCzDUGjJDabhI1xAMo="}]},"maintainers":[{"name":"wadey","email":"wade@wades.im"}]},"0.3.1":{"name":"wadey-ranger","description":"wadey's fork of: A node.js library for interacting with Campfire","keywords":["campfire","chat","api"],"contributors":[{"name":"Matt Duncan","email":"matt@mattduncan.org","url":"http://mattduncan.org"},{"name":"Wade Simmons","email":"wade@wades.im","url":"http://wades.im/mons"}],"repository":{"type":"git","url":"git://github.com/wadey/ranger.git"},"bugs":{"url":"http://github.com/wadey/ranger/issues"},"licenses":[{"type":"MIT","url":"http://github.com/wadey/ranger/raw/master/LICENSE"}],"lib":"lib","main":"./lib/ranger","version":"0.3.1","engines":{"node":"0.4 || 0.5"},"homepage":"http://github.com/wadey/ranger","directories":{"lib":"lib"},"_npmJsonOpts":{"file":"/Users/wade/.npm/wadey-ranger/0.3.1/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"wadey-ranger@0.3.1","dependencies":{},"devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.27","_nodeVersion":"v0.4.11","_defaultsLoaded":true,"dist":{"shasum":"0aae154903e5134433a9b35868fbe6859bee9b63","tarball":"https://registry.npmjs.org/wadey-ranger/-/wadey-ranger-0.3.1.tgz","integrity":"sha512-5dPM7jMVbXAAoMEvuB+k/t0O/fakUF6X3ZTQ6sJ2vI9e5Lzo7GoanbwEIvlrqoU/i8snH+bMuhM0UVjMXlQT2Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCMO39b3BxyhdPyIBZFNsvjjexbWS1uXE4sfec3V2/ssAIhAMRfqA/u2a2H3pS/V17AAsvjweydNONWwOFa6ajrzRqL"}]},"maintainers":[{"name":"wadey","email":"wade@wades.im"}]},"0.3.2":{"name":"wadey-ranger","description":"wadey's fork of: A node.js library for interacting with Campfire","keywords":["campfire","chat","api"],"contributors":[{"name":"Matt Duncan","email":"matt@mattduncan.org","url":"http://mattduncan.org"},{"name":"Wade Simmons","email":"wade@wades.im","url":"http://wades.im/mons"}],"repository":{"type":"git","url":"git://github.com/wadey/ranger.git"},"bugs":{"url":"http://github.com/wadey/ranger/issues"},"licenses":[{"type":"MIT","url":"http://github.com/wadey/ranger/raw/master/LICENSE"}],"lib":"lib","main":"./lib/ranger","version":"0.3.2","engines":{"node":"0.4 || 0.5"},"homepage":"http://github.com/wadey/ranger","directories":{"lib":"lib"},"_npmJsonOpts":{"file":"/Users/wade/.npm/wadey-ranger/0.3.2/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"wadey-ranger@0.3.2","dependencies":{},"devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.27","_nodeVersion":"v0.4.11","_defaultsLoaded":true,"dist":{"shasum":"31231fe371c71c79c04b6f9798ba00ca37507b1e","tarball":"https://registry.npmjs.org/wadey-ranger/-/wadey-ranger-0.3.2.tgz","integrity":"sha512-Djl5M04/LKvcUYSBtCaATIa0QbhprGmS9Re4CZP5RSxT/2RmM+QSj6/PC6KpaDFiJ54RoxqEn1fc9pOGjNsL+g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCTZ9AtOf8UpdLvXulRi3+up4ANlKjFxdbOyBroOAEWiwIhAIcxM5H7/vxSVHLlmc0qBQ6CTZrLiqj0vac+jchQkj5L"}]},"maintainers":[{"name":"wadey","email":"wade@wades.im"}]},"0.3.3":{"name":"wadey-ranger","description":"wadey's fork of: A node.js library for interacting with Campfire","keywords":["campfire","chat","api"],"contributors":[{"name":"Matt Duncan","email":"matt@mattduncan.org","url":"http://mattduncan.org"},{"name":"Wade Simmons","email":"wade@wades.im","url":"http://wades.im/mons"}],"repository":{"type":"git","url":"git://github.com/wadey/ranger.git"},"bugs":{"url":"http://github.com/wadey/ranger/issues"},"licenses":[{"type":"MIT","url":"http://github.com/wadey/ranger/raw/master/LICENSE"}],"lib":"lib","main":"./lib/ranger","version":"0.3.3","engines":{"node":"0.4 || 0.5"},"homepage":"http://github.com/wadey/ranger","directories":{"lib":"lib"},"_npmJsonOpts":{"file":"/Users/wade/.npm/wadey-ranger/0.3.3/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"wadey-ranger@0.3.3","dependencies":{},"devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.27","_nodeVersion":"v0.4.11","_defaultsLoaded":true,"dist":{"shasum":"495bb34970a8b3ca9f4e563bcbbd8b864b90bd75","tarball":"https://registry.npmjs.org/wadey-ranger/-/wadey-ranger-0.3.3.tgz","integrity":"sha512-smGb4o8O2yJJbdziAE/RRh309/Wt9t+xipybmqomaPSWS1oNfUT1EIATQC9fAIjJw1SUbV9DePYdfKy+SIeH5A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCLZvxq4RqRu/lWPExkBNJWY/V5XqnlCpvovkALYM5aqgIhAKmjwCq+rGWUxX475s25oLfzp5o7mA+zd+NzvNedDWqu"}]},"maintainers":[{"name":"wadey","email":"wade@wades.im"}]},"0.3.4":{"name":"wadey-ranger","description":"wadey's fork of: A node.js library for interacting with Campfire","keywords":["campfire","chat","api"],"contributors":[{"name":"Matt Duncan","email":"matt@mattduncan.org","url":"http://mattduncan.org"},{"name":"Wade Simmons","email":"wade@wades.im","url":"http://wades.im/mons"}],"repository":{"type":"git","url":"git://github.com/wadey/ranger.git"},"bugs":{"url":"http://github.com/wadey/ranger/issues"},"licenses":[{"type":"MIT","url":"http://github.com/wadey/ranger/raw/master/LICENSE"}],"lib":"lib","main":"./lib/ranger","version":"0.3.4","engines":{"node":"0.4 || 0.5"},"homepage":"http://github.com/wadey/ranger","directories":{"lib":"lib"},"_npmJsonOpts":{"file":"/Users/wade/.npm/wadey-ranger/0.3.4/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"wadey-ranger@0.3.4","dependencies":{},"devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.27","_nodeVersion":"v0.4.11","_defaultsLoaded":true,"dist":{"shasum":"437530cc275c32e083526663f7c7b08be229f4c1","tarball":"https://registry.npmjs.org/wadey-ranger/-/wadey-ranger-0.3.4.tgz","integrity":"sha512-rolW2s/7uWrWa4nHml3TTQ6E1SDi8aR9NjXu0mHd9z3NiGezrNxmKj8jQ+UsKmfL1BBPg3U/ou7v7mjQUzazJg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCq+zFYysFy3W754GpkdOTJ2UrIBufer7gPJoZuUkGS8gIgWI79KqZv/ODW9nuzJbho5YBBfMLGM+kLJtS6tLUfHZI="}]},"maintainers":[{"name":"wadey","email":"wade@wades.im"}]},"0.3.5":{"name":"wadey-ranger","description":"wadey's fork of: A node.js library for interacting with Campfire","keywords":["campfire","chat","api"],"contributors":[{"name":"Matt Duncan","email":"matt@mattduncan.org","url":"http://mattduncan.org"},{"name":"Wade Simmons","email":"wade@wades.im","url":"http://wades.im/mons"}],"repository":{"type":"git","url":"git://github.com/wadey/ranger.git"},"bugs":{"url":"http://github.com/wadey/ranger/issues"},"licenses":[{"type":"MIT","url":"http://github.com/wadey/ranger/raw/master/LICENSE"}],"lib":"lib","main":"./lib/ranger","version":"0.3.5","engines":{"node":"0.4 || 0.5"},"homepage":"http://github.com/wadey/ranger","directories":{"lib":"lib"},"_npmJsonOpts":{"file":"/Users/wade/.npm/wadey-ranger/0.3.5/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"wadey-ranger@0.3.5","dependencies":{},"devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.27","_nodeVersion":"v0.4.11","_defaultsLoaded":true,"dist":{"shasum":"c6babd9d425d10128cefacc4c480a65278332bbf","tarball":"https://registry.npmjs.org/wadey-ranger/-/wadey-ranger-0.3.5.tgz","integrity":"sha512-GaSSvfsXq+eL+mf0iUF1TxUgdJdtbdJLeV7rZ8lZYO/Q0xG/WtgZmqtyR9z5zR8L+wAvYG+rKU0xZkZjgHq46g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDoixfo/T0cIft08PV99ZRnOV//efqB6zGxaPMKkUA+oQIgOfY5xFF5FvwjVjbD35IKX6RIlWSc85FtdygmPm+TYgI="}]},"maintainers":[{"name":"wadey","email":"wade@wades.im"}]},"0.3.5-noreconnect":{"name":"wadey-ranger","description":"wadey's fork of: A node.js library for interacting with Campfire","keywords":["campfire","chat","api"],"contributors":[{"name":"Matt Duncan","email":"matt@mattduncan.org","url":"http://mattduncan.org"},{"name":"Wade Simmons","email":"wade@wades.im","url":"http://wades.im/mons"}],"repository":{"type":"git","url":"git://github.com/wadey/ranger.git"},"bugs":{"url":"http://github.com/wadey/ranger/issues"},"licenses":[{"type":"MIT","url":"http://github.com/wadey/ranger/raw/master/LICENSE"}],"lib":"lib","main":"./lib/ranger","version":"0.3.5-noreconnect","engines":{"node":"0.4 || 0.5"},"homepage":"http://github.com/wadey/ranger","directories":{"lib":"lib"},"_npmJsonOpts":{"file":"/Users/wade/.npm/wadey-ranger/0.3.5-noreconnect/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"wadey-ranger@0.3.5-noreconnect","dependencies":{},"devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.27","_nodeVersion":"v0.4.11","_defaultsLoaded":true,"dist":{"shasum":"27b7f4ad24c5003164a1ae0391c2053eb21fe714","tarball":"https://registry.npmjs.org/wadey-ranger/-/wadey-ranger-0.3.5-noreconnect.tgz","integrity":"sha512-vkjHXriDyPxOkN535LSX0Wd4OzvYD6yxspFi2AbyKwcFi5cdel3pR699MAtSTGF1CLQWdfMFoy5R2lS+Elz5og==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD9a+GWUA+4ovgB71/zJYmN3YVb0Br1K6vYLD+jbC+XfgIhALDGcxq6W3bHQ/HwJflqSXDcdkriPdX3vTs+zcZOppqy"}]},"maintainers":[{"name":"wadey","email":"wade@wades.im"}]},"0.3.6":{"name":"wadey-ranger","description":"wadey's fork of: A node.js library for interacting with Campfire","keywords":["campfire","chat","api"],"contributors":[{"name":"Matt Duncan","email":"matt@mattduncan.org","url":"http://mattduncan.org"},{"name":"Wade Simmons","email":"wade@wades.im","url":"http://wades.im/mons"}],"repository":{"type":"git","url":"git://github.com/wadey/ranger.git"},"bugs":{"url":"http://github.com/wadey/ranger/issues"},"licenses":[{"type":"MIT","url":"http://github.com/wadey/ranger/raw/master/LICENSE"}],"lib":"lib","main":"./lib/ranger","version":"0.3.6","engines":{"node":"0.4 || 0.5"},"homepage":"http://github.com/wadey/ranger","directories":{"lib":"lib"},"_npmUser":{"name":"wadey","email":"wade@wades.im"},"_id":"wadey-ranger@0.3.6","dependencies":{},"devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.106","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"761df8d99e17f88de0823b2d02c7cf3ce75df284","tarball":"https://registry.npmjs.org/wadey-ranger/-/wadey-ranger-0.3.6.tgz","integrity":"sha512-GFiItjZuvTSDvNIym+AgQE+OWgK/J80h4AainDKbyvwFmKTaYdigZp7hgGe7jdX3eqqJe+dEvzdBdpY2jQJ9sA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDIN7pMF+QWm7icLG4Aanvm082s0bKO6k9M3Ks5axqhFgIgLUz7/nuzgvWnQEQB60HSB5XFbs+9XEktJTjq10IAz1c="}]},"maintainers":[{"name":"wadey","email":"wade@wades.im"}]},"0.3.7":{"name":"wadey-ranger","description":"wadey's fork of: A node.js library for interacting with Campfire","keywords":["campfire","chat","api"],"contributors":[{"name":"Matt Duncan","email":"matt@mattduncan.org","url":"http://mattduncan.org"},{"name":"Wade Simmons","email":"wade@wades.im","url":"http://wades.im/mons"}],"repository":{"type":"git","url":"git://github.com/wadey/ranger.git"},"bugs":{"url":"http://github.com/wadey/ranger/issues"},"licenses":[{"type":"MIT","url":"http://github.com/wadey/ranger/raw/master/LICENSE"}],"lib":"lib","main":"./lib/ranger","version":"0.3.7","engines":{"node":"0.4 || 0.5 || 0.6"},"homepage":"http://github.com/wadey/ranger","directories":{"lib":"lib"},"_npmUser":{"name":"wadey","email":"wade@wades.im"},"_id":"wadey-ranger@0.3.7","dependencies":{},"devDependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.15","_nodeVersion":"v0.6.14","_defaultsLoaded":true,"dist":{"shasum":"73a5a053707ca7790620edf5eba6cbc026c91541","tarball":"https://registry.npmjs.org/wadey-ranger/-/wadey-ranger-0.3.7.tgz","integrity":"sha512-9V874gE0s2LXBvyp1TU0mdib8X0NkeD6En/MnLmSP7LQw6O7Lp4fYxpYPbRxiXD9ALtkFi7Ns1u87ClVWIn7ig==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBtBtyEqqqoL3T9lApMxoL1g36GzjceykM3vsse00GmnAiEAkR/1i/QqoKF/PhhV4nOQyywrGgPneX4FgY8YDPpBWyk="}]},"maintainers":[{"name":"wadey","email":"wade@wades.im"}]},"0.3.8":{"name":"wadey-ranger","description":"wadey's fork of: A node.js library for interacting with Campfire","keywords":["campfire","chat","api"],"contributors":[{"name":"Matt Duncan","email":"matt@mattduncan.org","url":"http://mattduncan.org"},{"name":"Wade Simmons","email":"wade@wades.im","url":"http://wades.im/mons"}],"repository":{"type":"git","url":"git://github.com/wadey/ranger.git"},"bugs":{"url":"http://github.com/wadey/ranger/issues"},"licenses":[{"type":"MIT","url":"http://github.com/wadey/ranger/raw/master/LICENSE"}],"lib":"lib","main":"./lib/ranger","version":"0.3.8","engines":{"node":"0.4 || 0.5 || 0.6"},"homepage":"http://github.com/wadey/ranger","directories":{"lib":"lib"},"_npmUser":{"name":"wadey","email":"wade@wades.im"},"_id":"wadey-ranger@0.3.8","dependencies":{},"devDependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.15","_nodeVersion":"v0.6.14","_defaultsLoaded":true,"dist":{"shasum":"29add778c8b4a97d534ea014026b7584b05f63bb","tarball":"https://registry.npmjs.org/wadey-ranger/-/wadey-ranger-0.3.8.tgz","integrity":"sha512-s/+y/H4uj9Lh3RhF/a7N7HDHz7qd9dBBxTJ4Vx5iB9xCUPLSDS2iOVhOF63xi3N1cVF/l0SZPV+235Tq9opXsw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD5uDqI4So/RCQ2TGmiCVANlhMUadWW6jG6mVbsy36wuAIgD0pwtpYwotHFJ5f5JKIvEVV+nmMoYuHxGUzs9y3Vz9Y="}]},"maintainers":[{"name":"wadey","email":"wade@wades.im"}]}},"maintainers":[{"name":"wadey","email":"wade@wades.im"}],"time":{"modified":"2022-06-28T21:24:11.586Z","created":"2011-08-24T05:46:52.996Z","0.2.4":"2011-08-24T05:46:55.332Z","0.3.0":"2011-08-27T22:27:22.541Z","0.3.1":"2011-08-27T22:48:40.101Z","0.3.2":"2011-08-28T20:31:49.901Z","0.3.3":"2011-09-20T04:08:18.775Z","0.3.4":"2011-09-20T18:38:21.538Z","0.3.5":"2011-10-14T05:11:15.533Z","0.3.5-noreconnect":"2011-10-14T05:22:26.191Z","0.3.6":"2012-01-05T04:50:01.158Z","0.3.7":"2012-04-06T03:34:40.213Z","0.3.8":"2012-04-06T03:51:56.676Z"},"repository":{"type":"git","url":"git://github.com/wadey/ranger.git"},"readme":"Ranger\n======\n\nRanger is a [node.js](http://nodejs.org/) library for interacting with [Campfire](http://campfirenow.com/).\n\nInstall\n-------\nInstall ranger using [npm](http://npmjs.org/).\n\n    npm install ranger\n\nAPI\n---\nCreate a new client with the following:\n\n    var client = require(\"ranger\").createClient(\"account\", \"api-key\");\n\nThe createClient function takes two parameters:\n\n1. The account name, which is the subdomain of your account url.  If your account url is `37signals.campfire.com` then your account name would be `37signals`.\n2. The api key of the user to connect as.  You can get it from the \"My info\" link once logged into Campfire.\n\n### Client\nGet a room by id:\n\n    client.room(12345, function (room) { console.log(room); });\n\nGet an array of all rooms:\n\n    client.rooms(function (rooms) { console.log(rooms); });\n\nGet an array of all rooms the api user is in:\n\n    client.presence(function (rooms) { console.log(rooms) });\n\nSearch for messages containing terms:\n\n    client.search(\"party time\", function (messages) { console.log(messages) });\n\nGet a user by id:\n\n    client.user(12345, function (user) { console.log(user); });\n\nGet the api user:\n\n    client.me(function (user) { console.log(user); });\n\n### Room\nSpeak a message:\n\n    room.speak(\"hello world\");\n\nPaste some text:\n\n    room.paste(\"hello\\nworld\");\n\nPlay a sound:\n\n    room.play(\"trombone\");\n\nShow a tweet:\n\n    room.tweet(\"https://twitter.com/#!/jack/status/20\");\n\nUpdate the room:\n\n    room.update({ name: \"Lounge\", topic: \"Anything goes\" });\n\nJoin the room:\n\n    room.join();\n\nLeave the room:\n\n    room.leave();\n\nLock the room:\n\n    room.lock();\n\nUnlock the room:\n\n    room.unlock();\n\nGet an array of users in the room:\n\n    room.users(function (users) { console.log(users); });\n\nGet an array of up to 5 recent file uploads in the room:\n\n    room.recentUploads(function (uploads) { console.log(uploads); });\n\nGet an array of up to 100 recent messages in the room:\n\n    room.recentMessages(function (messages) { console.log(messages); });\n\nListen for messages in the room:\n\n    room.listen(function (message) { console.log(message); });\n\nGet whether messages are being listened for:\n\n    room.isListening();\n\nStop listening for messages in the room:\n\n    room.stopListening();\n\nGet an array of messages for a day:\n\n    room.transcript(function (messages) { console.log(messages); });\n\n    var newYears = new Date(2011, 0, 1);\n    room.transcript(newYears, function (messages) { console.log(messages); });\n\n### Message\nStar the message:\n\n    message.star();\n\nUnstar the message:\n\n    message.unstar();\n\nGet the upload details for the message:\n\n    message.upload(function (upload) { console.log(upload); });\n\n\nExamples\n--------\nThe following example joins room 123456 and plays the vuvuzela sound whenever\nanyone uses the word \"soccer\".\n\n    var client = require(\"ranger\").createClient(\"account\", \"api-key\");\n    client.room(123456, function (room) {\n      room.join(function () {\n        room.listen(function (message) {\n          if (message.type === \"TextMessage\" && message.body.match(/soccer/i)) {\n            room.play(\"vuvuzela\");\n          }\n        });\n      });\n    });\n\nContributing\n------------\n\n1. [Fork](http://help.github.com/fork-a-repo/) Ranger\n2. Create a topic branch - git checkout -b mybranch\n3. Push to your branch - git push origin mybranch\n4. Create a new pull request\n\nAuthor\n------\nMatt Duncan | [mattduncan.org](http://mattduncan.org) | [matt@mattduncan.org](mailto:matt@mattduncan.org)\n","readmeFilename":""}