---
url: /typescript-api/interfaces/SaveOptions.md
---
[@sheetkit/node](../globals.md) / SaveOptions

# Interface: SaveOptions

Defined in: [packages/sheetkit/index.ts:251](https://github.com/Nebu1eto/sheetkit/blob/aedd8c0c4ec37185210740b875ec6bb714d323d4/packages/sheetkit/index.ts#L251)

Durability options for one path save.

Every path save writes a `.sheetkit-` temporary file in the destination
directory and renames it over the destination, so a failed save or an
application crash leaves the previous file intact.
With `durable: false` (default) no flush is requested: a power loss or OS
crash shortly after a successful save may leave the previous version, the
new one, or an empty or incomplete file. With `durable: true` the file is
flushed to storage before the rename and, on Unix, the directory is synced
after it; a failed directory sync throws even though the new file is
already in place.

## Properties

### durable?

> `optional` **durable?**: `boolean`

Defined in: [packages/sheetkit/index.ts:253](https://github.com/Nebu1eto/sheetkit/blob/aedd8c0c4ec37185210740b875ec6bb714d323d4/packages/sheetkit/index.ts#L253)

Flush the file and its directory entry to storage. Defaults to false.
