UNPKG

commiter-cli

Version:

A CLI tool to standardize and translate Git commit messages

13 lines (10 loc) 336 B
import { dirname, resolve, join } from 'node:path'; import { fileURLToPath } from 'node:url'; const __filename = fileURLToPath(import.meta.url); const __dirname = dirname(__filename); const absolutePath = (relativePath) => { return resolve(join(__dirname, '..'), relativePath); }; export default { absolutePath };