Sha256: eb86be166b134f022d96c26aef85a93038f3fb29df3baf0e2e470f9ebcec7d6d

Contents?: true

Size: 154 Bytes

Versions: 33

Compression:

Stored size: 154 Bytes

Contents

export async function fileExists(path) {
  try {
    const fileInfo = await Deno.stat(path)
    return fileInfo.isFile
  } catch {
    return false
  }
}

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
proscenium-0.2.1-x86_64-linux lib/proscenium/utils.js
proscenium-0.2.0-arm64-darwin lib/proscenium/utils.js
proscenium-0.2.0-x86_64-darwin lib/proscenium/utils.js
proscenium-0.2.0-x86_64-linux lib/proscenium/utils.js
proscenium-0.1.2-arm64-darwin lib/proscenium/utils.js
proscenium-0.1.2-x86_64-darwin lib/proscenium/utils.js
proscenium-0.1.2-x86_64-linux lib/proscenium/utils.js
proscenium-0.1.1-arm64-darwin lib/proscenium/utils.js
proscenium-0.1.1-x86_64-darwin lib/proscenium/utils.js
proscenium-0.1.1-x86_64-linux lib/proscenium/utils.js
proscenium-0.1.0.alpha4-arm64-darwin lib/proscenium/utils.js
proscenium-0.1.0.alpha4-x86_64-darwin lib/proscenium/utils.js
proscenium-0.1.0.alpha4-x86_64-linux lib/proscenium/utils.js