time-to-botec

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

repl.txt (1002B)


      1 
      2 {{alias}}( path, clbk )
      3     Asynchronously tests whether a path exists on the filesystem.
      4 
      5     Parameters
      6     ----------
      7     path: string|Buffer
      8         Path to test.
      9 
     10     clbk: Function
     11         Callback to invoke after testing for path existence. A callback may
     12         accept a single argument, a boolean indicating whether a path exists, or
     13         two arguments, an error argument and a boolean, matching the error-first
     14         callback convention used in most asynchronous Node.js APIs.
     15 
     16     Examples
     17     --------
     18     > function done( error, bool ) { console.log( bool ); };
     19     > {{alias}}( './beep/boop', done );
     20 
     21 
     22 {{alias}}.sync( path )
     23     Synchronously tests whether a path exists on the filesystem.
     24 
     25     Parameters
     26     ----------
     27     path: string|Buffer
     28         Path to test.
     29 
     30     Returns
     31     -------
     32     bool: boolean
     33         Boolean indicating whether the path exists.
     34 
     35     Examples
     36     --------
     37     > var bool = {{alias}}.sync( './beep/boop' )
     38     <boolean>
     39 
     40     See Also
     41     --------
     42