Flusspferd API and module docs

namespace require

Description

Properties of the require() function

Class properties

  • alias #

    require.alias -> Object

    Dictionary of aliases. The top-level module id is designated by a string only. There is no recursive alias lookup. Aliases will be resolved before anything else.

  • module_cache #

    require.module_cache -> Object

    Dictionary of loaded modules.

  • paths #

    require.paths -> Array

    Search paths for the default module loader. The paths parameter itself is read-only, meaning you cannot reassign to require.paths – to make changes use one of the Array functions, such as push.

  • preload #

    require.preload -> Object

    Dictionary of callback functions. The first time a top-level module name matching a key in perload is loaded, the function stored there will be called.