UNPKG
@modular-css/processor
Version:
latest (29.0.4)
next (27.0.2)
29.0.4
29.0.3
29.0.2
29.0.1
29.0.0
28.1.5
28.1.4
28.1.3
28.0.0
27.1.0
27.0.3
27.0.2
27.0.1
27.0.0
26.0.0
25.8.2
25.8.0
25.7.0
25.6.0
25.5.0
25.4.1
25.4.0
25.3.1
25.2.0
25.1.0
25.0.0
24.2.2
24.2.1
24.2.0
24.1.0
24.0.1
24.0.0
23.0.4
23.0.0
22.1.4
22.1.2
22.1.0
22.0.1
22.0.0
21.2.0
21.1.1
21.0.0
20.0.0
19.1.0
19.0.0
18.0.0
17.1.2
17.1.1
17.0.0
16.2.0
16.1.0
16.0.0
A streamlined reinterpretation of CSS Modules
m-css.com
tivac/modular-css
@modular-css/processor
/
lib
/
normalize.js
12 lines
(8 loc)
•
197 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
"use strict"
;
const
path =
require
(
"path"
);
module
.
exports
=
(
cwd, file
) =>
{
if
(!path.
isAbsolute
(file)) { file = path.
join
(cwd, file); }
return
path.
normalize
(file); };