1.0.7 • Published 2 years ago

latest-tweets-modern v1.0.7

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

latest-tweets made by: https://github.com/hackergrrl/

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