Export

Verb · Noun · Development

Definitions

  1. To make a function, variable, or class available for import by other modules. In JavaScript/TypeScript, 'export' controls the public API of a module. In shell scripting, 'export' makes a variable available to child processes.

    In plain English: Marking something in your code as 'available to others' — like putting a book on the public shelf instead of keeping it in your desk drawer.

    Example: "If you don't export the function, other files can't import it — it stays private to the module."

Related Terms