How to access the L1 and L2 cache in Node.js?

Hi, I am Jakub Drozd and I am creating my JSprimecount repository, a recreation of primecount in JavaScript and I would like to know the L1 and L2 cache of my processor, but I don’t know how to do it. I would be very grateful.