INNER CODE UNIT · JavaScript

reformIndents

DinoChiesa/jwt-webtool · src/js/app.js:156

function reformIndents(s) {
  const s2 = s
    .split(new RegExp("\n", "g"))
    .map((s) => s.trim())
    .join("\n");
  return s2.trim();
}

function timeAgo(time) {
  return new TimeAgo("en-US").format(time);
}

function formatTimeString(time) {
  return time.toISOString().replace(".000Z", "Z");
}

function hmacToKeyBits(alg) {
  switch (alg) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…