Skip to content

toPosixFilePath JavaScript

Returns the given path as a path in POSIX format (usually used by Linux). For example, a Windows path will be converted to / instead of \\.

Parameters

  • filePath::string

Returns

string

Examples

javascript
toPosixFilePath('C:\\Windows\\System32'); // 'C:/Windows/System32'

Released under the MIT License