time-to-botec/js/node_modules/@stdlib/utils/convert-path/docs/repl.txt
NunoSempere b6addc7f05 feat: add the node modules
Necessary in order to clearly see the squiggle hotwiring.
2022-12-03 12:44:49 +00:00

36 lines
830 B
Plaintext

{{alias}}( from, to )
Converts between POSIX and Windows paths.
Parameters
----------
from: string
Input path.
to: string
Output path convention: 'win32', 'mixed', or 'posix'.
Returns
-------
out: string
Converted path.
Examples
--------
> var out = {{alias}}( '/c/foo/bar/beep.c', 'win32' )
'c:\\foo\\bar\\beep.c'
> out = {{alias}}( '/c/foo/bar/beep.c', 'mixed' )
'c:/foo/bar/beep.c'
> out = {{alias}}( '/c/foo/bar/beep.c', 'posix' )
'/c/foo/bar/beep.c'
> out = {{alias}}( 'C:\\\\foo\\bar\\beep.c', 'win32' )
'C:\\\\foo\\bar\\beep.c'
> out = {{alias}}( 'C:\\\\foo\\bar\\beep.c', 'mixed' )
'C:/foo/bar/beep.c'
> out = {{alias}}( 'C:\\\\foo\\bar\\beep.c', 'posix' )
'/c/foo/bar/beep.c'
See Also
--------