habemus-papam
Version:
Returns information about the current pope of the Catholic Church.
11 lines (8 loc) • 330 B
JavaScript
import { isElectionDayToday, getCurrentPope } from '../src/index.js';
const pope = getCurrentPope();
console.log("Habemus Papam!");
console.log(`${pope.name} (${pope.birthName}) was elected on ${pope.elected}.`);
if (isElectionDayToday()) {
console.log("Today is the election day of the current pope!");
}