Skip to main content
WriteStream.prototype.path - node__fs.d.ts - Node documentation
property WriteStream.prototype.path

Usage in Deno

```typescript import { WriteStream } from "node:node__fs.d.ts"; ```
The path to the file the stream is writing to as specified in the first argument to [createWriteStream](../.././node__fs.d.ts/~/createWriteStream). If `path` is passed as a string, then`writeStream.path` will be a string. If `path` is passed as a `Buffer`, then`writeStream.path` will be a `Buffer`.

Type

string | Buffer