1.0.6 • Published 2 years ago

b42yte v1.0.6

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

42 Bytes => "answer to life the universe and everything"

Simple NPM package based on the Hitchiker's Guide to the Galaxy

Features

  • 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

Installation using npm

  npm install b42yte

Usage/Examples

Get advice from marvin

import { GetAdvice } from 'b42yte';

GetAdvice('Your name here');

Get the answer to life, the universe and everything

import { TheAnswerToLifeTheUniverseAndEverything } from 'b42yte';

TheAnswerToLifeTheUniverseAndEverything();

Get a random quote from HHGTTG

import { GetQuote } from 'b42yte';

GetQuote();

Get remaining days until Towel Day

import { IsItTowelDay } from 'b42yte';

IsItTowelDay();

Get current improbability level

import { GetImprobabilityLevel } from 'b42yte';

GetImprobabilityLevel(true);
If true is passed the return will be something like: "8^621315:1"
If false is passed the return will be something like: "Current improbability level: 4^710575:1"

CommonJS

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);

Contributing

Contributors are welcome

License

ISC License

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago