Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 617 Bytes

File metadata and controls

28 lines (18 loc) · 617 Bytes

__filename (string)

The absolute path to the currently-executing file (whether script or module).

Behaves the same as in Node.js, except that it's also present within ES modules.

Example: /home/suchipi/some-folder/some-file.js

var __filename: string;

__dirname (string)

The absolute path to the directory containing the currently-executing file.

Behaves the same as in Node.js, except that it's also present within ES modules.

Example: /home/suchipi/some-folder

var __dirname: string;