Credit Repo
This is a modified version of hackergrrls latest tweet nodejs module.
Modified for easier use, and will be maintained.
Installing
npm i latest-tweets-modern
Example In House
(async () => {
const latestTweets = new (require('../latest-tweet.js'))({
skipPinnedTweets: true,
});
await latestTweets.getTweets('elonmusk', 5, async (err, tweets) => {
console.log(tweets);
});
})();
Example NPM
(async () => {
const latestTweets = new (require('latest-tweets-modern'))({
skipPinnedTweets: true,
});
await latestTweets.getTweets('elonmusk', 5, async (err, tweets) => {
console.log(tweets);
});
})();
Current Options
{
skippedPinnedTweets: boolean
}
License
MIT