UNPKG
ts-budgie
Version:
latest (0.3.1)
0.3.1
Converts TypeScript code to Budgie.
github.com/budgielang/ts-budgie
budgielang/ts-budgie
ts-budgie
/
src
/
compiler
/
utils.ts
8 lines
(7 loc)
•
280 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
/** * Fully lowercases and converts to forward slashes a path. * *
@param
filePath Path to normalize. *
@returns
Fully normalized version of the path. */
export
const
fullyNormalizeFilePath
= (filePath:
string
):
string
=> filePath.
replace
(/\\/g,
"/"
).
toLowerCase
();