char/avril
(wip) why'd you have to go and make things so complicaaaaated?
git clone https://git.t4t.associates/char/avril
38d5bbf
main
1import { ObjectFreeze } from "ext:core/primordials" ; 2import { posixBase , win32Base } from "./lexical.js" ; 3import { 4posixFromFileUrl , 5posixToFileUrl , 6win32FromFileUrl , 7win32ToFileUrl , 8} from "./urls.js" ; 9 10// Both variant namespaces are built once here so every entry module shares 11// their identity; wrappers only re-export them and the chosen top-level names. 12const posix = ObjectFreeze ({ 13 ...posixBase , 14fromFileUrl :posixFromFileUrl , 15toFileUrl :posixToFileUrl , 16}); 17 18const win32 = ObjectFreeze ({ 19 ...win32Base , 20fromFileUrl :win32FromFileUrl , 21toFileUrl :win32ToFileUrl , 22}); 23 24export { posix , win32 };