repl.txt (1421B)
1 2 {{alias}}( value ) 3 Tests if a value is a relative path. 4 5 Function behavior is platform-specific. On Windows platforms, the function 6 is equal to `.win32()`. On POSIX platforms, the function is equal to 7 `.posix()`. 8 9 Parameters 10 ---------- 11 value: any 12 Value to test. 13 14 Returns 15 ------- 16 bool: boolean 17 Boolean indicating whether value is a relative path. 18 19 Examples 20 -------- 21 // Windows environments: 22 > var bool = {{alias}}( 'foo\\bar\\baz' ) 23 true 24 25 // POSIX environments: 26 > bool = {{alias}}( './foo/bar/baz' ) 27 true 28 29 30 {{alias}}.posix( value ) 31 Tests if a value is a POSIX relative path. 32 33 Parameters 34 ---------- 35 value: any 36 Value to test. 37 38 Returns 39 ------- 40 bool: boolean 41 Boolean indicating whether value is a POSIX relative path. 42 43 Examples 44 -------- 45 > var bool = {{alias}}.posix( './foo/bar/baz' ) 46 true 47 > bool = {{alias}}.posix( '/foo/../bar/baz' ) 48 false 49 50 51 {{alias}}.win32( value ) 52 Tests if a value is a Windows relative path. 53 54 Parameters 55 ---------- 56 value: any 57 Value to test. 58 59 Returns 60 ------- 61 bool: boolean 62 Boolean indicating whether value is a Windows relative path. 63 64 Examples 65 -------- 66 > var bool = {{alias}}( 'foo\\bar\\baz' ) 67 true 68 > bool = {{alias}}( 'C:\\foo\\..\\bar\\baz' ) 69 false 70 71 See Also 72 -------- 73