I want to create a directory string variable which is \'.\\app\\src\\algorithms\' to use it in exec function in node on Windows Platform. However, it doesn not work properly ev
I think the best way to handle platform independent work with path is using path module. E.g.
var path = require('path'); var directory = path.join('.', 'app', 'src', 'algorithms')