Permalink
Cannot retrieve contributors at this time
23 lines (18 sloc)
600 Bytes
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
codeql-action/node_modules/ava/node_modules/slash/index.d.ts
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Convert Windows backslash paths to slash paths: `foo\\bar` ➔ `foo/bar`. | |
[Forward-slash paths can be used in Windows](http://superuser.com/a/176395/6877) as long as they're not extended-length paths and don't contain any non-ascii characters. | |
@param path - A Windows backslash path. | |
@returns A path with forward slashes. | |
@example | |
``` | |
import path from 'path'; | |
import slash from 'slash'; | |
const string = path.join('foo', 'bar'); | |
// Unix => foo/bar | |
// Windows => foo\\bar | |
slash(string); | |
// Unix => foo/bar | |
// Windows => foo/bar | |
``` | |
*/ | |
export default function slash(path: string): string; |