UNPKG

@produck/json-index-archive

Version:

8 lines (5 loc) 179 B
import * as fs from 'node:fs'; export default async function birthtime({ pathname }) { const stat = await fs.promises.stat(pathname); return [Math.trunc(stat.birthtimeMs)]; }