Skip to content
File

Blob: src/node/path.ts

typescript45 lines
1// Copyright (c) 2017-2022 Cloudflare, Inc.
2// Licensed under the Apache 2.0 license found in the LICENSE file or at:
3// https://opensource.org/licenses/Apache-2.0
4//
5/* eslint-disable @typescript-eslint/unbound-method */
6import { posix, win32 } from 'node-internal:internal_path';
7 
8const {
9 resolve,
10 normalize,
11 isAbsolute,
12 join,
13 relative,
14 toNamespacedPath,
15 dirname,
16 basename,
17 extname,
18 format,
19 parse,
20 sep,
21 delimiter,
22 matchesGlob,
23} = posix;
24 
25export {
26 resolve,
27 normalize,
28 isAbsolute,
29 join,
30 relative,
31 toNamespacedPath,
32 dirname,
33 basename,
34 extname,
35 format,
36 parse,
37 sep,
38 delimiter,
39 posix,
40 win32,
41 matchesGlob,
42};
43 
44export { default } from 'node-internal:internal_path';