UNPKG
@tevm/compiler
Version:
latest (1.0.0-next.140)
next (1.0.0-next.21)
2.0.0-next.102
2.0.0-next.101
2.0.0-next.86
2.0.0-next.80
2.0.0-next.79
1.1.0-next.96
1.1.0-next.77
1.1.0-next.74
1.1.0-next.72
1.1.0-next.69
1.1.0-next.60
1.1.0-next.52
1.1.0-next.47
1.0.0-next.140
1.0.0-next.134
1.0.0-next.131
1.0.0-next.128
1.0.0-next.124
1.0.0-next.118
1.0.0-next.117
1.0.0-next.109
1.0.0-next.86
1.0.0-next.41
1.0.0-next.40
1.0.0-next.28
1.0.0-next.23
1.0.0-next.21
0.0.0-next.102
Utilities around compiler
github.com/evmts/tevm-monorepo
evmts/tevm-monorepo
@tevm/compiler
/
src
/
utils
/
formatPath.js
9 lines
(8 loc)
•
250 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
/** * Formats a path to be used in the contract loader *
@param
{
string
}
contractPath
- The path to the contract *
@returns
{
string
} - The formatted path */
export
const
formatPath
= (
contractPath
) => {
return
contractPath.
replace
(
/\\/g
,
'/'
) }