wwwtxtdeprecated

Unix fortune, but with early internet posts

Usage no npm install needed!

<script type="module">
  import wwwtxt from 'https://cdn.skypack.dev/wwwtxt';
</script>

README

wwwtxt

Unix fortune, but with early internet posts

js-semistandard-style

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:

Source

wwwtxt