Spec-Zone.ru › Deno 1

Deno.MakeTempOptions

Options which can be set when using Deno.makeTempDir, Deno.makeTempDirSync, Deno.makeTempFile, and Deno.makeTempFileSync.

interface MakeTempOptions {
dir?: string;
prefix?: string;
suffix?: string;
}

Properties

dir?: string

Directory where the temporary directory should be created (defaults to the env variable TMPDIR, or the system's default, usually /tmp).

Note that if the passed dir is relative, the path returned by makeTempFile() and makeTempDir() will also be relative. Be mindful of this when changing working directory.

prefix?: string

String that should precede the random portion of the temporary directory's name.

suffix?: string

String that should follow the random portion of the temporary directory's name.

© 2018–2022 the Deno authors
https://doc.deno.land/deno/stable/~/Deno.MakeTempOptions

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API