INNER CODE UNIT · JavaScript

resolvePath

justadudewhohacks/opencv4nodejs · lib/commons.js:4

function resolvePath(filePath, file) {
  if (!filePath) {
    return undefined
  }
  return (file ? path.resolve(filePath, file) : path.resolve(filePath)).replace(/\\/g, '/')
}

module.exports = {
  resolvePath
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…