This package has been deprecated

Author message:

This package is no longer in development

wwwtxt

4.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i wwwtxt

Weekly Downloads

1

Version

4.0.0

License

MIT

Last publish

Collaborators

  • npm