1.0.0 • Published 5 years ago
planet-detector v1.0.0
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.');
}
1.0.0
5 years ago