Skip to content

Instantly share code, notes, and snippets.

const config = require("./config.js");
const dayjs = require("dayjs");
const utc = require("dayjs/plugin/utc");
const crypto = require("crypto");
// activate UTC plugin
dayjs.extend(utc);
function getClientIp(req) {