1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-27 16:10:57 -05:00
denoland-deno/cli/tests/testdata/npm/mixed_case_package_name/local.ts

19 lines
419 B
TypeScript
Raw Normal View History

import value from "npm:@denotest/MixedCase";
console.log(value);
console.log(pathExists("./node_modules/.deno"));
console.log(
pathExists("./node_modules/.deno/_ibsgk3tporsxg5bpinavaskuifgfg@1.0.0"),
);
function pathExists(filePath: string) {
try {
Deno.lstatSync(filePath);
return true;
} catch (error) {
if (error instanceof Deno.errors.NotFound) {
return false;
}
throw error;
}
}