Best way to use env files for Mac and Windows?

I am using typescript gen to create the types for me using contentful from package json.
Now I understand that Unix based systems can have access to it but I don't want to leak keys.

What's the best way to do this?
Was this page helpful?