{"_id":"lwink","_rev":"8-0827ab14bd908b83bfc85e5f74df8e6b","name":"lwink","description":"Lwink is a Twitter unique link tracker, expander and emitter","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.1":{"name":"lwink","description":"Lwink is a Twitter unique link tracker, expander and emitter","version":"0.0.1","author":{"name":"George Stagas","email":"gstagas@gmail.com"},"engines":{"node":">=0.4.0"},"dependencies":{"ent":">=0.0.2"},"main":"./lwink","repository":{"type":"git","url":"git://github.com/stagas/lwink.git"},"bugs":{"url":"https://github.com/stagas/lwink/issues"},"_id":"lwink@0.0.1","_engineSupported":true,"_npmVersion":"0.3.18","_nodeVersion":"v0.4.7","directories":{},"files":[""],"_defaultsLoaded":true,"dist":{"shasum":"776bfa32baf79cb1a42ecbf77e578e5b56578d26","tarball":"https://registry.npmjs.org/lwink/-/lwink-0.0.1.tgz","integrity":"sha512-2zETM3tek5CAof0fyEbMXkjL5sTx5dzB6ZzAjnABq57A9Tz0a2SoQnKbjrpXVWcG7QDuNXecOvS9V4civ+0GFw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDHEy/lhxTiQlMGrnKi4voOyDvAZDOWVKEEypV71oyQ7gIhAN+YtwPI3h+hhlJwKOMPvuzjShqbLlQyH5Y8Vcj+jAJ0"}]}},"0.0.2":{"name":"lwink","description":"Lwink is a Twitter unique link tracker, expander and emitter","version":"0.0.2","author":{"name":"George Stagas","email":"gstagas@gmail.com"},"engines":{"node":">=0.4.0"},"dependencies":{"he":">=0.4.1"},"main":"./lwink","repository":{"type":"git","url":"https://github.com/stagas/lwink"},"bugs":{"url":"https://github.com/stagas/lwink/issues"},"gitHead":"99da6b6f2d2dc1acd0288533464bf71e455eb727","homepage":"https://github.com/stagas/lwink","_id":"lwink@0.0.2","scripts":{},"_shasum":"5dc66c09b02335dac36ace15111761eb0186384e","_from":".","_npmVersion":"1.4.15","_npmUser":{"name":"mathias","email":"mathias@qiwi.be"},"maintainers":[{"name":"stagas","email":"gstagas@gmail.com"},{"name":"mathias","email":"mathias@qiwi.be"}],"dist":{"shasum":"5dc66c09b02335dac36ace15111761eb0186384e","tarball":"https://registry.npmjs.org/lwink/-/lwink-0.0.2.tgz","integrity":"sha512-qtM6wzEvx+RXQtAKZuW6PZx2s2qiM8Rpmt/yYS8Ke57VOKkuFURGjfmW5e7ar4D4Y8AlfnntrKJRQw/UHnjihg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCkArDDRsCs8AWgg/hJl7y90lttYDQ/Px3VoWT66dbf1AIhAIyVQdsW3d8MJKK3enlmbbj25qkVLpv2l88xB5u1hBJH"}]}}},"maintainers":[{"name":"stagas","email":"gstagas@gmail.com"},{"name":"mathias","email":"mathias@qiwi.be"}],"time":{"modified":"2022-06-19T14:49:16.465Z","created":"2011-05-19T18:43:19.545Z","0.0.1":"2011-05-19T18:43:20.269Z","0.0.2":"2014-06-14T07:21:27.653Z"},"author":{"name":"George Stagas","email":"gstagas@gmail.com"},"repository":{"type":"git","url":"https://github.com/stagas/lwink"},"bugs":{"url":"https://github.com/stagas/lwink/issues"},"readme":"lwink\n=====\n\nWhat it does\n------------\n\nPolls the Twitter search API for tweets with links. Expands them with HEAD and replaces\ntiny urls in the tweet.text with the expanded ones. Saves the links to a storage engine\nor in memory so that it never emits the same link twice. Only unique content!\n\nInstallation\n------------\n\n    npm install lwink\n\nExample\n-------\n```javascript\nrequire('lwink')('node.js OR nodejs').runInterval(10000, function(links) {\n  console.log(Object.keys(links))\n})\n\n```\nAlso see examples/\n\nAPI Overview\n------------\n```javascript\nvar Lwink = require('lwink')\n\nvar lwink = Lwink('node.js OR nodejs')\n\n// event emitter pattern\n\nlwink.on('tweets', function(tweets) {\n  // array of tweets\n})\n\nlwink.on('links', function(links) {\n  // hash of links as keys - values as tweets\n})\n\n// running the search\nlwink.run()\n\n// or with a callback if you don't want to use\n// the evented method\nlwink.run(function(links, tweets) {\n  // links hash and tweets array, use any\n})\n\n// perhaps run in an interval?\nlwink.runInterval(ms)\n\n// or\nlwink.runInterval(ms, callback) // like above\n\n// stop the damn thing\nlwink.stop()\n\n// options:\n\nvar lwink = Lwink('node.js OR nodejs', {\n  store: storeEngine    // store engine to use. Only .get and .set are required\n                        // so you can use almost any key value store\n                        // defaults to an internal memory store\n                        \n, translate: 'en'       // translate tweets using google api (here: english)\n                        // default: no translation\n                        \n, decodeEntities: true  // decode tweet html entities (requires module 'ent')\n                        // default: false\n                        \n, skipFirst: false      // skip first search (useful when you don't want to\n                        // spam a feed on init)\n})\n\n```\n\nMIT licenced\n","readmeFilename":"README.md","homepage":"https://github.com/stagas/lwink"}