[Home](./index.md) > [@apextoaster/js-utils](./js-utils.md) > [writePid](./js-utils.writepid.md) ## writePid() function Write the current process ID to a file at the given `path`. Signature: ```typescript export declare function writePid(path: string): Promise; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | path | string | | Returns: `Promise`