# isPathTokenName()

[**PromptScript API**](https://getpromptscript.dev/api-reference/index.md)

***

# Function: isPathTokenName()

> **isPathTokenName**(`name`): `boolean`

Defined in: [core/src/utils/path-tokens.ts:23](https://github.com/mrwogu/promptscript/blob/49aa50f943865b985366c4eda6e95c5a31ef39a6/packages/core/src/utils/path-tokens.ts#L23)

Return true for a dotted template name that is a path token, like `prs.dotDir`.

## Parameters

### name

`string`

## Returns

`boolean`