hashrock / deno-opn

Opens stuff like websites, files, executables. Cross-platform, for Deno.

Home Page:https://doc.deno.land/https/raw.githubusercontent.com/hashrock/deno-opn/master/opn.ts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WSL Support

hashrock opened this issue · comments

The original opn can determine that it is itself running from the WSL.

Deno can't do that because of:

  • "platform" in WSL returns just { arch: "x64", os: "linux" }
  • there is no os.release().

Not solved, but close because life is so short.