mvp-ai's picture
download
raw
345 Bytes
const DATE_TOKEN = /\{\{DATE\+(\d+)d\}\}/g;
export function expandDates(text, now) {
return text.replace(DATE_TOKEN, (_, days) => {
const date = new Date(now);
date.setDate(date.getDate() + Number(days));
return date.toLocaleDateString("en-US", {
month: "long",
day: "numeric",
year: "numeric",
});
});
}

Xet Storage Details

Size:
345 Bytes
·
Xet hash:
5efc9fe05f0b14dad278f9108f38f89cafe5e72adabfc5c0abb4ed9471dcf43d

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.