Simple NPM package based on the Hitchiker's Guide to the Galaxy
- Get advice from Marvin
- Get the answer to life, the universe and everything
- Get a random HHGTTG quote
- Get remaining days until Towel Day. Towel Day is an annual celebration on the 25th of May (On that day, fans around the universe carry a towel in honour of Douglas Adams.)
- Get current improbability level
Installation using npm
npm install b42yte
import { GetAdvice } from 'b42yte';
GetAdvice('Your name here');
import { TheAnswerToLifeTheUniverseAndEverything } from 'b42yte';
TheAnswerToLifeTheUniverseAndEverything();
import { GetQuote } from 'b42yte';
GetQuote();
import { IsItTowelDay } from 'b42yte';
IsItTowelDay();
import { GetImprobabilityLevel } from 'b42yte';
GetImprobabilityLevel(true);
var b42yte = require("b42yte");
// Get advice from marvin
b42yte.GetAdvice('Your name here');
// Get the answer to life, the universe and everything
b42yte.TheAnswerToLifeTheUniverseAndEverything();
// Get a random quote from HHGTTG
b42yte.GetQuote();
// Get days remaining until Towel Day
b42yte.IsItTowelDay();
// Get current improbability level
b42yte.GetImprobabilityLevel(true);