Skip to main content
Module

x/deno2node/src/mod.ts>emit

Compile your Deno project to run on Node.js.
Go to Latest
function emit
import { emit } from "https://deno.land/x/deno2node@v1.7.1/src/mod.ts";

Emits project to the filesystem. Returns diagnostics.

Replaces Deno shebang with Node.js shebang in JS outputs. Removes shebangs from non-JS outputs. Then chmod +x's outputs with Node.js shebang.

Parameters

project: Project

Returns

Promise<Diagnostic[]>