Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno2node/src/deps.deno.ts>SourceFile#copyImmediately

Compile your Deno project to run on Node.js.
Go to Latest
method SourceFile.prototype.copyImmediately
import { SourceFile } from "https://deno.land/x/deno2node@v1.10.0/src/deps.deno.ts";

Copy this source file to a new file and immediately saves it to the file system asynchronously.

This will modify the module specifiers in the new file, if necessary.

Parameters

filePath: string
  • New file path. Can be relative to the original file or an absolute path.
optional
options: SourceFileCopyOptions
  • Options for copying.