Best way to get system OS and architecture strings

what’s the best way to get a consistent system OS and architecture strings that works for windows and UNIX systems? Already tried:

  • jit.os / jit.arch

  • vim.loop.os_uname()

  • vim.fn.system

Any other ideas?

1 Like