Skip to main content
Module

x/lume/core/utils/date.ts>getGitDate

🔥 Static site generator for Deno 🦕
Extremely Popular
Go to Latest
function getGitDate
import { getGitDate } from "https://deno.land/x/lume@v2.1.0/core/utils/date.ts";

Returns the date of the git commit that created or modified the file. Thanks to https://github.com/11ty/eleventy/blob/8dd2a1012de92c5ee1eab7c37e6bf1b36183927e/src/Util/DateGitLastUpdated.js

Parameters

type: "created" | "modified"
file: string

Returns

Date | undefined