time-to-botec

Benchmark sampling in different programming languages
Log | Files | Refs | README

repl.txt (717B)


      1 
      2 {{alias}}( id )
      3     Wraps `require` in a `try/catch` block.
      4 
      5     This function traps and returns any errors encountered when attempting to
      6     require a module.
      7 
      8     Use caution when attempting to resolve a relative path or a local module.
      9     This function attempts to resolve a module from its current path. Thus, the
     10     function is unable to resolve anything which is not along its search path.
     11     For local requires, use an absolute file path.
     12 
     13     Parameters
     14     ----------
     15     id: string
     16         Module id.
     17 
     18     Returns
     19     -------
     20     out: any|Error
     21         Resolved module or an `Error`.
     22 
     23     Examples
     24     --------
     25     > var out = {{alias}}( '_unknown_module_id_' )
     26     <Error>
     27 
     28     See Also
     29     --------
     30