Finds WebStorm
import whichWebstorm from "which-webstorm";
console.log(await whichWebstorm()); // prints path to WebStorm binary
console.log(whichWebstorm.sync()); // prints path to WebStorm binary
$ which-webstorm
C:\Program Files (x86)\JetBrains\WebStorm 163.4396.14\bin\WebStorm.exe
Open the current working directory in WebStorm:
$ wstorm
Open a specific directory in WebStorm:
$ wstorm /home/oliver/projects/which-webstorm