How to use the path-type.fileSync function in path-type

To help you get started, we’ve selected a few path-type examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mapbox / batfish / src / node / validate-config.js View on Github external
function isExistingFile(value: *): boolean {
  if (!_.isString(value)) {
    return false;
  }
  return pathType.fileSync(value);
}

path-type

Check if a path is a file, directory, or symlink

MIT
Latest version published 5 months ago

Package Health Score

76 / 100
Full package analysis