UNPKG
path2
Version:
latest (0.1.0)
0.1.0
Modular and extended version of `path` package
github.com/medikoo/path2
medikoo/path2
path2
/
test
/
posix
/
normalize.js
13 lines
(10 loc)
•
296 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
'use strict'
;
module
.
exports
=
exports
=
function
(
t, a
) {
exports
.
tests
(t, a); };
exports
.
tests
=
function
(
t, a
) {
a
(
t
(
'./fixtures///b/../b/c.js'
),
'fixtures/b/c.js'
);
a
(
t
(
'/foo/../../../bar'
),
'/bar'
);
a
(
t
(
'a//b//../b'
),
'a/b'
);
a
(
t
(
'a//b//./c'
),
'a/b/c'
);
a
(
t
(
'a//b//.'
),
'a/b'
); };