in python i can use
import os
os.pathsep ===> ':' for unix, ';' for windows.
how can i get the same in nodejs?
for now i am asking if platform is win32 or not
process.platform === 'win32' ? ';' : ':' ;
i want to achieve the same as asked : Python: Platform independent way to modify PATH environment variable but in nodejs.
var path = require('path');
var delimiter = path.delimiter;
See also here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With