Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deno/cli/js/files.ts>OpenOptions

A modern runtime for JavaScript and TypeScript.
Go to Latest
interface OpenOptions
Re-export
import { type OpenOptions } from "https://deno.land/x/deno@v1.0.0/cli/js/files.ts";

Properties

optional
read: boolean
optional
write: boolean
optional
append: boolean
optional
truncate: boolean
optional
create: boolean
optional
createNew: boolean
optional
mode: number

Permissions to use if creating the file (defaults to 0o666, before the process's umask). It's an error to specify mode without also setting create or createNew to true. Ignored on Windows.