I am trying to use eiows as an optional dependency on my project. My project is running on Windows and Linux.
So I want to use eiows on Linux and switch to native ws on Windows.
But I can't use eiows as an optional dependency, because npm does not know the supported os for the module and will try to install it on Windows anyway.
Is it possible to add explicitly the supported os to the package.json file ?
Hello,
I am trying to use eiows as an optional dependency on my project. My project is running on Windows and Linux. So I want to use eiows on Linux and switch to native ws on Windows.
But I can't use eiows as an optional dependency, because npm does not know the supported os for the module and will try to install it on Windows anyway.
Is it possible to add explicitly the supported os to the package.json file ?
For example:
NPM documentation
Thanks!