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
/
is-absolute.js
11 lines
(8 loc)
•
222 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
'use strict'
;
module
.
exports
=
exports
=
function
(
t, a
) {
exports
.
tests
(t, a); };
exports
.
tests
=
function
(
t, a
) {
a
(
t
(
'/home/foo'
),
true
);
a
(
t
(
'/home/foo/..'
),
true
);
a
(
t
(
'bar/'
),
false
);
a
(
t
(
'./baz'
),
false
); };