char/avril
(wip) why'd you have to go and make things so complicaaaaated?
git clone https://git.t4t.associates/char/avril
83ff6f3
main
1import { posix as posixNamespace , win32 as win32Namespace } from "./api.js" ; 2import type { ParsedPath , Path , PathObject } from "avril:path" ; 3export type { ParsedPath , Path , PathObject } from "avril:path" ; 4 5export const posix :Path = posixNamespace ; 6export const win32 :Path = win32Namespace ; 7 8export const join :( ...paths :string []) => string = win32Namespace . join ; 9export const resolve :( ...paths :string []) => string = win32Namespace . resolve ; 10export const normalize :( path :string ) => string = win32Namespace . normalize ; 11export const relative :( from :string , to :string ) => string = win32Namespace . relative ; 12export const dirname :( path :string ) => string = win32Namespace . dirname ; 13export const basename :( path :string , suffix ?:string ) => string = win32Namespace . basename ; 14export const extname :( path :string ) => string = win32Namespace . extname ; 15export const isAbsolute :( path :string ) => boolean = win32Namespace . isAbsolute ; 16export const parse :( path :string ) => ParsedPath = win32Namespace . parse ; 17export const format :( pathObject :PathObject ) => string = win32Namespace . format ; 18export const toNamespacedPath :( path :string ) => string = win32Namespace . toNamespacedPath ; 19// The flavor separators are definitionally literal; the `Path` object above 20// only types them as `string`. 21export const sep :"\\" = "\\" ; 22export const delimiter :";" = ";" ; 23export const fromFileUrl :( url :URL | string ) => string = win32Namespace . fromFileUrl ; 24export const toFileUrl :( path :string ) => URL = win32Namespace . toFileUrl ;