File
Blob: src/node/path/posix.ts
| 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 */ |
| 6 | import { posix, win32 } from 'node-internal:internal_path'; |
| 7 | const { |
| 8 | basename, |
| 9 | dirname, |
| 10 | extname, |
| 11 | format, |
| 12 | isAbsolute, |
| 13 | join, |
| 14 | matchesGlob, |
| 15 | normalize, |
| 16 | parse, |
| 17 | relative, |
| 18 | resolve, |
| 19 | toNamespacedPath, |
| 20 | delimiter, |
| 21 | sep, |
| 22 | } = posix; |
| 23 | export { |
| 24 | basename, |
| 25 | dirname, |
| 26 | extname, |
| 27 | format, |
| 28 | isAbsolute, |
| 29 | join, |
| 30 | matchesGlob, |
| 31 | normalize, |
| 32 | parse, |
| 33 | relative, |
| 34 | resolve, |
| 35 | toNamespacedPath, |
| 36 | delimiter, |
| 37 | posix, |
| 38 | sep, |
| 39 | win32, |
| 40 | }; |
| 41 | export default posix; |