/*! * normalize-path <https://github.com/jonschlinkert/normalize-path> * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. */varremoveTrailingSeparator=require('remove-trailing-separator');module.exports=functionnormalizePath(str,stripTrailing){if(typeofstr!=='string'){thrownewTypeError('expected a string');}str=str.replace(/[\\\/]+/g,'/');if(stripTrailing!==false){str=removeTrailingSeparator(str);}returnstr;};