{"_id":"apostrophe-twitter-2","_rev":"42-c75717091a9b737629e22ee7215609a4","name":"apostrophe-twitter-2","dist-tags":{"latest":"0.5.7"},"versions":{"0.5.1":{"name":"apostrophe-twitter-2","version":"0.5.1","keywords":["apostrophe","rich","text","rich","content","twitter"],"author":{"name":"P'unk Avenue punkave.com"},"license":"MIT","_id":"apostrophe-twitter-2@0.5.1","maintainers":[{"name":"colpanik","email":"kerry@punkave.com"}],"homepage":"https://github.com/punkave/apostrophe-twitter-2","bugs":{"url":"https://github.com/punkave/apostrophe-twitter-2/issues"},"dist":{"shasum":"f3a444d00091c4c4dae799da8710a49798872d5d","tarball":"https://registry.npmjs.org/apostrophe-twitter-2/-/apostrophe-twitter-2-0.5.1.tgz","integrity":"sha512-Sm54GjlpReTggIKaX59hXbCqZ/5g0HZl2VZ1oAzWoz8MSG07u7/GhcdEwtHp4W7E2RF+sASxS/+LR9RdNLL9qQ==","signatures":[{"sig":"MEQCIByOWU8IbVL/GvOGzjCz05l1y3HW5m+RuFoJYwgkhXLBAiAiU7O6UUMwnyHNdUcXlo7x5I/+cLoOvV4nFqwTtcVj/w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"colpanik","email":"kerry@punkave.com"},"repository":{"url":"git://github.com/punkave/apostrophe-twitter-2.git","type":"git"},"_npmVersion":"1.4.3","description":"Now with server-side template rendering! Adds a Twitter feed widget to Apostrophe's rich content editor","directories":{},"dependencies":{"qs":"~0.6.5","extend":"~1.1.3","lodash":"2.4.x","simple-twitter":"~1.0.3"},"devDependencies":{}},"0.5.3":{"name":"apostrophe-twitter-2","version":"0.5.3","keywords":["apostrophe","rich","text","rich","content","twitter"],"author":{"name":"P'unk Avenue punkave.com"},"license":"MIT","_id":"apostrophe-twitter-2@0.5.3","maintainers":[{"name":"benirose","email":"ben@punkave.com"},{"name":"colpanik","email":"kerry@punkave.com"}],"homepage":"https://github.com/punkave/apostrophe-twitter-2#readme","bugs":{"url":"https://github.com/punkave/apostrophe-twitter-2/issues"},"dist":{"shasum":"3a6ec0f3b453dd1915be898fcdf822738195cf37","tarball":"https://registry.npmjs.org/apostrophe-twitter-2/-/apostrophe-twitter-2-0.5.3.tgz","integrity":"sha512-0YAEKjmejj1HwSk9Plrsziya8PseWgCZbCQFY9R8xO+3UPs3akJAkREVvaPCsculYlHf9mR3pig6SnA9cBsxjQ==","signatures":[{"sig":"MEUCIH+XVk6pkzmLnwFwMgtGqHjxKhv7EIH5E8LfhAE6Pn42AiEAnG9DGNaBsGY3ts+qccbnLDuXlp9tmZqAzGHPY5L2Rgw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"3a6ec0f3b453dd1915be898fcdf822738195cf37","gitHead":"8f973e9c1cddb99c76f86d83fa73172d066f2e9e","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"benirose","email":"ben@punkave.com"},"repository":{"url":"git://github.com/punkave/apostrophe-twitter-2.git","type":"git"},"_npmVersion":"3.3.8","description":"Now with server-side template rendering! Adds a Twitter feed widget to Apostrophe's rich content editor","directories":{},"_nodeVersion":"0.12.7","dependencies":{"qs":"~0.6.5","extend":"~1.1.3","lodash":"2.4.x","moment":"^2.10.6","simple-twitter":"~1.0.3"}},"0.5.4":{"name":"apostrophe-twitter-2","version":"0.5.4","keywords":["apostrophe","rich","text","rich","content","twitter"],"author":{"name":"P'unk Avenue punkave.com"},"license":"MIT","_id":"apostrophe-twitter-2@0.5.4","maintainers":[{"name":"alexgilbert","email":"alex@punkave.com"},{"name":"austinstarin","email":"austin.starin@gmail.com"},{"name":"benirose","email":"ben@punkave.com"},{"name":"boutell","email":"boutell@boutell.com"},{"name":"colpanik","email":"kerry@punkave.com"},{"name":"jimmyh","email":"jimmy@punkave.com"},{"name":"jsumnersmith","email":"joel@punkave.com"},{"name":"kyjoya","email":"kyleejacker@gmail.com"},{"name":"mcoppola","email":"coppola@punkave.com"},{"name":"stuartromanek","email":"stuart@punkave.com"},{"name":"suhmantha1","email":"sam@punkave.com"}],"homepage":"https://github.com/punkave/apostrophe-twitter-2#readme","bugs":{"url":"https://github.com/punkave/apostrophe-twitter-2/issues"},"dist":{"shasum":"5f47c185c50c69721ba9ad19471986acd3c1ad57","tarball":"https://registry.npmjs.org/apostrophe-twitter-2/-/apostrophe-twitter-2-0.5.4.tgz","integrity":"sha512-I07cealVWp29EnY+BXxuuVbe1bAKu7n6MO8KVqZv9LXMcxo+T2/0RDWp1XpYEcCKw1oQ63Tf8U2LNDevv99HZg==","signatures":[{"sig":"MEUCIFjFbw9cE01omOiSnkHSihXrZLM07sKWzRIvZGxRU5IvAiEAxZWmOqH0AX65GV3j0V/hXPibe43gFb5GHzDQDMl7ZR0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"5f47c185c50c69721ba9ad19471986acd3c1ad57","gitHead":"c80d3a710bc43b1ba483912e3d12b1e9226207fb","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"boutell","email":"boutell@boutell.com"},"repository":{"url":"git://github.com/punkave/apostrophe-twitter-2.git","type":"git"},"_npmVersion":"3.6.0","description":"Now with server-side template rendering! Adds a Twitter feed widget to Apostrophe's rich content editor","directories":{},"_nodeVersion":"0.10.41","dependencies":{"qs":"~0.6.5","extend":"~1.1.3","lodash":"2.4.x","moment":"^2.10.6","simple-twitter":"~1.0.3"},"_npmOperationalInternal":{"tmp":"tmp/apostrophe-twitter-2-0.5.4.tgz_1459445426489_0.4234708580188453","host":"packages-12-west.internal.npmjs.com"}},"0.5.5":{"name":"apostrophe-twitter-2","version":"0.5.5","keywords":["apostrophe","rich","text","rich","content","twitter"],"author":{"name":"P'unk Avenue punkave.com"},"license":"MIT","_id":"apostrophe-twitter-2@0.5.5","maintainers":[{"name":"alexgilbert","email":"alex@punkave.com"},{"name":"austinstarin","email":"austin.starin@gmail.com"},{"name":"benirose","email":"ben@punkave.com"},{"name":"boutell","email":"boutell@boutell.com"},{"name":"colpanik","email":"kerry@punkave.com"},{"name":"jimmyh","email":"jimmy@punkave.com"},{"name":"jsumnersmith","email":"joel@punkave.com"},{"name":"kyjoya","email":"kyleejacker@gmail.com"},{"name":"mcoppola","email":"coppola@punkave.com"},{"name":"stuartromanek","email":"stuart@punkave.com"},{"name":"suhmantha1","email":"sam@punkave.com"}],"homepage":"https://github.com/punkave/apostrophe-twitter-2#readme","bugs":{"url":"https://github.com/punkave/apostrophe-twitter-2/issues"},"dist":{"shasum":"895918a7407ff942178523715f1dbed0fd2fb539","tarball":"https://registry.npmjs.org/apostrophe-twitter-2/-/apostrophe-twitter-2-0.5.5.tgz","integrity":"sha512-3FlqvzV7mQrc3BcQYvfj2Gwajt5xUzzcuNMTYG4kguu8RVD8eedhLmNTKBEesU4KLLIfcaiyWqjeizSjxIc+Bw==","signatures":[{"sig":"MEUCIDie+U+yu0PMd7qRIX4HJU5fsl532rkPsI6F7Ox8VfDhAiEAt6O7Duk1V9aCaO1TzBe3sZLrWrqx0n7J4O7efBFbtqU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"895918a7407ff942178523715f1dbed0fd2fb539","gitHead":"d34c4d49ffb2233b0a30727508a67bc7be229300","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"boutell","email":"boutell@boutell.com"},"repository":{"url":"git://github.com/punkave/apostrophe-twitter-2.git","type":"git"},"_npmVersion":"3.6.0","description":"Now with server-side template rendering! Adds a Twitter feed widget to Apostrophe's rich content editor","directories":{},"_nodeVersion":"0.10.41","dependencies":{"qs":"~0.6.5","extend":"~1.1.3","lodash":"2.4.x","moment":"^2.10.6","simple-twitter":"~1.0.3"},"_npmOperationalInternal":{"tmp":"tmp/apostrophe-twitter-2-0.5.5.tgz_1459450752163_0.4225078858435154","host":"packages-12-west.internal.npmjs.com"}},"0.5.6":{"name":"apostrophe-twitter-2","version":"0.5.6","keywords":["apostrophe","rich","text","rich","content","twitter"],"author":{"name":"P'unk Avenue punkave.com"},"license":"MIT","_id":"apostrophe-twitter-2@0.5.6","maintainers":[{"name":"alexgilbert","email":"alex@punkave.com"},{"name":"austinstarin","email":"austin.starin@gmail.com"},{"name":"benirose","email":"ben@punkave.com"},{"name":"boutell","email":"boutell@boutell.com"},{"name":"colpanik","email":"kerry@punkave.com"},{"name":"jimmyh","email":"jimmy@punkave.com"},{"name":"jsumnersmith","email":"joel@punkave.com"},{"name":"kyjoya","email":"kyleejacker@gmail.com"},{"name":"mcoppola","email":"coppola@punkave.com"},{"name":"stuartromanek","email":"stuart@punkave.com"},{"name":"suhmantha1","email":"sam@punkave.com"}],"homepage":"https://github.com/punkave/apostrophe-twitter-2#readme","bugs":{"url":"https://github.com/punkave/apostrophe-twitter-2/issues"},"dist":{"shasum":"afd2738e4cbf277993ca2cdf7591eda6994df9dc","tarball":"https://registry.npmjs.org/apostrophe-twitter-2/-/apostrophe-twitter-2-0.5.6.tgz","integrity":"sha512-iqiJNZQ7kert5aKSZ5Uv+BD8TDk3FviZMUBVjbI9gjytW21DCYaBzpQnmIlDedncPS17ZCXRtq1kP5jIX9Cxcg==","signatures":[{"sig":"MEUCIEkoYyMUDH1NU2KVxuZ0eb6RV6td/S7IZ/sOKDlxslGZAiEA7xXykfFos2mLki3mZrPGzMhULPPzeUf2ZGfx0NJ7EuE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"afd2738e4cbf277993ca2cdf7591eda6994df9dc","gitHead":"03fa354a32539bb6ea219edd6a522e1b87a5b416","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"boutell","email":"boutell@boutell.com"},"repository":{"url":"git://github.com/punkave/apostrophe-twitter-2.git","type":"git"},"_npmVersion":"3.6.0","description":"Now with server-side template rendering! Adds a Twitter feed widget to Apostrophe's rich content editor","directories":{},"_nodeVersion":"0.10.41","dependencies":{"qs":"~0.6.5","extend":"~1.1.3","lodash":"2.4.x","moment":"^2.10.6","simple-twitter":"~1.0.3"},"_npmOperationalInternal":{"tmp":"tmp/apostrophe-twitter-2-0.5.6.tgz_1459452147087_0.5534090790897608","host":"packages-16-east.internal.npmjs.com"}},"0.5.7":{"name":"apostrophe-twitter-2","version":"0.5.7","keywords":["apostrophe","rich","text","rich","content","twitter"],"author":{"name":"P'unk Avenue punkave.com"},"license":"MIT","_id":"apostrophe-twitter-2@0.5.7","maintainers":[{"name":"alexgilbert","email":"alex@punkave.com"},{"name":"austinstarin","email":"austin@punkave.com"},{"name":"boutell","email":"boutell@boutell.com"},{"name":"colpanik","email":"kerry@punkave.com"},{"name":"grdunn","email":"grdunn@gmail.com"},{"name":"jimmyh","email":"jimmy@punkave.com"},{"name":"kyjoya","email":"kyleejacker@gmail.com"},{"name":"mcoppola","email":"coppola@punkave.com"},{"name":"stuartromanek","email":"stuart@punkave.com"}],"homepage":"https://github.com/punkave/apostrophe-twitter-2#readme","bugs":{"url":"https://github.com/punkave/apostrophe-twitter-2/issues"},"dist":{"shasum":"8a00b0d0ece03520bc8dd9991accd2c27ef99126","tarball":"https://registry.npmjs.org/apostrophe-twitter-2/-/apostrophe-twitter-2-0.5.7.tgz","integrity":"sha512-iC2MAx9nZCLlELA3tLYAcEotveToHgmbBAX6pw3alYgzpAWp997T0NrWiZD+NysJwpmkikuJWrsmEFi3Dm1yIg==","signatures":[{"sig":"MEUCIQD6jMdKb8kMNJPJcK2HXe+KMvDdgvtsyqmnUuMHZxCBMwIgfsJI/FQvgMunYHwENluSwCCKzHn3w1+LM2nVcdhxiA4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"8a00b0d0ece03520bc8dd9991accd2c27ef99126","gitHead":"3c8a824b770ca493d1d645577187988a73b374e4","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"boutell","email":"boutell@boutell.com"},"repository":{"url":"git://github.com/punkave/apostrophe-twitter-2.git","type":"git"},"_npmVersion":"3.6.0","description":"Now with server-side template rendering! Adds a Twitter feed widget to Apostrophe's rich content editor","directories":{},"_nodeVersion":"0.10.41","dependencies":{"qs":"~0.6.5","extend":"~1.1.3","lodash":"2.4.x","moment":"^2.10.6","simple-twitter":"~1.0.3"},"_npmOperationalInternal":{"tmp":"tmp/apostrophe-twitter-2-0.5.7.tgz_1475582246707_0.6035775044001639","host":"packages-16-east.internal.npmjs.com"}}},"time":{"created":"2015-07-08T20:34:09.279Z","modified":"2026-01-26T19:10:51.080Z","0.5.1":"2015-07-08T20:34:09.279Z","0.5.3":"2015-10-22T18:48:59.850Z","0.5.4":"2016-03-31T17:30:29.093Z","0.5.5":"2016-03-31T18:59:14.538Z","0.5.6":"2016-03-31T19:22:28.103Z","0.5.7":"2016-10-04T11:57:28.462Z"},"bugs":{"url":"https://github.com/punkave/apostrophe-twitter-2/issues"},"author":{"name":"P'unk Avenue punkave.com"},"license":"MIT","homepage":"https://github.com/punkave/apostrophe-twitter-2#readme","keywords":["apostrophe","rich","text","rich","content","twitter"],"repository":{"url":"git://github.com/punkave/apostrophe-twitter-2.git","type":"git"},"description":"Now with server-side template rendering! Adds a Twitter feed widget to Apostrophe's rich content editor","maintainers":[{"email":"alex@apostrophecms.com","name":"alexgilbert"},{"email":"tom@apostrophecms.com","name":"boutell"},{"email":"stuart+npm@apostrophecms.com","name":"romanek"},{"email":"robert.means1969+apostrophecms@gmail.com","name":"bodonkey"},{"email":"kerry@punkave.com","name":"colpanik"},{"email":"stuart@punkave.com","name":"stuartromanek"},{"email":"kyleejacker@gmail.com","name":"kyjoya"},{"email":"austin.starin@gmail.com","name":"austinstarin"},{"email":"grdunn@gmail.com","name":"grdunn"},{"email":"matthew.mance@gmail.com","name":"mtthwmnc"}],"readme":"## Deprecated for new sites\n\nThis module was for A2 0.5.x. For new projects, use the [apostrophe-twitter-widgets module](http://npmjs.org/package/apostrophe-twitter-widgets).\n\n# apostrophe-twitter-2\n\napostrophe-twitter is a widget for the [Apostrophe](http://apostrophenow.org) content management system. apostrophe-twitter lets you add a Twitter feed to any content area created with Apostrophe. apostrophe-twitter is also intended as a demonstration of how to add custom widgets to Apostrophe and enable their use in your project. See [apostrophe-sandbox](http://github.com/punkave/apostrophe-sandbox) for a project that demonstrates how to use apostrophe-twitter.\n\n## Requirements\n\nDue to Twitter's API access policies, you must [register a Twitter \"app\"](https://dev.twitter.com/) to use this module. The `consumerKey` and `consumerSecret`, `accessToken` and `accessTokenSecret` options must be set when initializing the module. After registering your app on dev.twitter.com, click \"create my access token.\" Then refresh the page as Twitter usually fails to display the token on the first try.\nnodemon## Setup\n\nIf you are using `apostrophe-site` (and you should be), adding this module is as simple as:\n\nnpm install apostrophe-twitter-2\n\nAnd in your app.js file:\n\n    modules: {\n      ... other modules ...\n      'apostrophe-twitter-2': {\n        consumerKey: 'get',\n        consumerSecret: 'your',\n        accessToken: 'own',\n        accessTokenSecret: 'credentials'\n      },\n      ... yet more modules ...\n    }\n\nNow it will be included in the default set of controls. If you are setting the `controls` option on your areas, the widget's name is `twitter`.\n\nTo insert it as a singleton, you might write:\n\n    {{ aposSingleton(page, 'twitter', 'twitter', { limit: 3 }) }}\n\nIf you want the same feed to appear on many pages, you might use the `global` virtual page:\n\n    {{ aposSingleton(global, 'twitter', 'twitter', { limit: 3 }) }}\n\n## Options\n\n### limit\n\nThe `limit` option controls the number of tweets to be displayed, at most. The `limit` option defaults to `5`.\n\n## aposTwitterReady\n\nOnce the tweets have been fully loaded into the template, an event called 'aposTwitterReady' fires. If you are manipulating the tweets on the front-end, you will want to listen for aposTwitterReady, rather than other DOM events. If you don't, the tweets may take a few seconds to load and your wonderful functions will fire before the tweets are accessible. You can then target the twitter widget with a simple declaration.For example:\n\n```javascript\n  $('body').on('aposTwitterReady', '.apos-widget', function() {\n    $widget = $(this);\n    $widget.find('.apos-tweets').makeThemMoreAwesome();\n  });\n```\n## aposTwitterNull\nIf no tweets could be found, an event called 'aposTwitterNull' fires. If you want something special to happen if there are no tweets available, this is your event.\n\n```javascript\n  $('body').on('aposTwitterNull', '.apos-widget', function() {\n    $widget = $(this);\n    $widget.find('.apos-tweets').seeYaLaterTemplate();\n  });\n```\n\nEnjoy!\n","readmeFilename":"README.md"}