Skip to content

getTemplateFilePath

Returns the absolute path of a template this package ships.

Import:

import { getTemplateFilePath } from '@mnaoumov/obsidian-dev-toolkit/templates';

Signature:

function getTemplateFilePath(name: string): string

Parameters:

Parameter Type Description
name string The template’s file name within dist/templates, e.g. eslint.config.mts.

Returns: string — The absolute path.