Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

🔥 Static site generator for Deno 🦕
Very Popular
Go to Latest
function getGitDate
import { getGitDate } from "https://deno.land/x/lume@v2.3.2/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