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>create

A modern runtime for JavaScript and TypeScript.
Go to Latest
function create
import { create } from "https://deno.land/x/deno@v0.30.0/cli/js/files.ts";

Creates a file if none exists or truncates an existing file and returns an instance of the File object.

  const file = await Deno.create("/foo/bar.txt");

Parameters

filename: string

Returns

Promise<File>