import { endianness } from "os" ; addEventListener ( "fetch" , ( event ) => { event . respondWith ( handleRequest ( event . request ) ) ; } ) ; async function handleRequest ( ) { const obj = { __dirname , __filename , cwd : process . cwd ( ) , global : ! ! global , Buffer : ! ! Buffer , process : ! ! process , endianness : ! ! endianness , } ; return new Response ( JSON . stringify ( obj ) ) ; }