wwwtxt
Unix fortune, but with early internet posts
Install
npm install -g wwwtxt
or
npm install wwwtxt
Usage
Global install
wwwtxt
Will print a random tweet.
wwwtxt --cow
Will print a random tweet using cowsay.
wwwtxt -n x
Will print the xth tweet. Can be combined with --cow
. Out of bounds indices will silently print nothing.
Module install
var getRandomTweet = require('wwwtxt');
getTweet(1)
.then((tweet) => {
console.log(tweet);
});
getRandomTweet()
.then((tweet) => {
console.log(tweet);
});
Why?
So you can do this:
or this: