UNPKG

lint-staged

Version:
7 lines (5 loc) 203 B
import fs from 'node:fs/promises' export const getVersion = async () => { const packageJson = JSON.parse(await fs.readFile(new URL('../package.json', import.meta.url))) return packageJson.version }