Skip to content

Instantly share code, notes, and snippets.

View rawberg's full-sized avatar

David Feinberg rawberg

View GitHub Profile
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) {