patch-package
patch-package copied to clipboard
is there a way to apply patch based on OS the code is running from ?
for example if it run from windows apply patch A, else patch B
If the NodeJS code needs to be different based on the OS, then instead of handling it with a patch per OS, you should just write the code in a way that it can universally handle different operations systems. You can do this using the os object. Can you share more about your use case?