Skip to content

@sheetkit/node / SaveOptions

Interface: SaveOptions ​

Defined in: packages/sheetkit/index.ts:251

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

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

Released under the MIT / Apache-2.0 License.