planet-detector

Lets you know which planet you are currently on.

Usage no npm install needed!

<script type="module">
  import planetDetector from 'https://cdn.skypack.dev/planet-detector';
</script>

README

Planet Detector

A simple module that lets you know which planet you are currently on.

Usage

Include Planet Detector, check which planet you are on and make better decisions.

const pd = require('planet-detector');

let planet = pd.getPlanet();
console.log('You are on planet', planet);

if (planet == 'Earth') {
    console.log('This planet is habitable.');
} else if (planet == 'Mars') {
    console.log('I hope you are wearing a space suit.');
}