Skip to main content
Module

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

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

Organizes the imports in the file.

WARNING! This will forget all the nodes in the file! It's best to do this after you're all done with the file.

Parameters

optional
formatSettings: FormatCodeSettings
  • Format code settings.
optional
userPreferences: UserPreferences
  • User preferences for refactoring.