4.0.0 • Published 10 years ago
wwwtxt v4.0.0
wwwtxt
Unix fortune, but with early internet posts
Install
npm install -g wwwtxtor
npm install wwwtxtUsage
Global install
wwwtxtWill print a random tweet.
wwwtxt --cowWill print a random tweet using cowsay.
wwwtxt -n xWill 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:
