diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2020-03-31 02:36:55 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-30 11:36:55 -0400 |
commit | 7670a13f8a036589f200296693957e4e24ef769a (patch) | |
tree | e8f389a6b9643195189a4aa1a7b9dbe930774543 /std/path/mod.ts | |
parent | d795d3436246b609c572921ea4511fbde37f0ff3 (diff) |
feat: Add common to std/path (#4527)
Diffstat (limited to 'std/path/mod.ts')
-rw-r--r-- | std/path/mod.ts | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/std/path/mod.ts b/std/path/mod.ts index dd79441f5..402adcf00 100644 --- a/std/path/mod.ts +++ b/std/path/mod.ts @@ -1,5 +1,5 @@ // Copyright the Browserify authors. MIT License. -// Ported from https://github.com/browserify/path-browserify/ +// Ported mostly from https://github.com/browserify/path-browserify/ import * as _win32 from "./win32.ts"; import * as _posix from "./posix.ts"; @@ -10,20 +10,23 @@ const path = isWindows ? _win32 : _posix; export const win32 = _win32; export const posix = _posix; -export const resolve = path.resolve; -export const normalize = path.normalize; -export const isAbsolute = path.isAbsolute; -export const join = path.join; -export const relative = path.relative; -export const toNamespacedPath = path.toNamespacedPath; -export const dirname = path.dirname; -export const basename = path.basename; -export const extname = path.extname; -export const format = path.format; -export const parse = path.parse; -export const sep = path.sep; -export const delimiter = path.delimiter; +export const { + resolve, + normalize, + isAbsolute, + join, + relative, + toNamespacedPath, + dirname, + basename, + extname, + format, + parse, + sep, + delimiter, +} = path; +export { common } from "./common.ts"; export { EOL, SEP, SEP_PATTERN, isWindows } from "./constants.ts"; export * from "./interface.ts"; export * from "./glob.ts"; |