const Main = ( () => { const ca ='public'; const cb ='private'; // we'll export this function const fa = () => `${ca}:${cb}`; // but not these const fb = () => fa(); const fc = () => fb(); // this is a little like export // just expose the things you want public return { fa, ca }; })();