MCPcopy Create free account
hub / github.com/inversify/InversifyJS / pathExists

Function pathExists

rollup.config.mjs:11–18  ·  view source on GitHub ↗

* @param {string} path * @returns {Promise }

(path)

Source from the content-addressed store, hash-verified

9 * @returns {Promise<boolean>}
10 */
11async function pathExists(path) {
12 try {
13 await fs.access(path);
14 return true;
15 } catch (_err) {
16 return false;
17 }
18}
19
20const PACKAGE_JSON_PATH = './package.json';
21

Callers 1

rollup.config.mjsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected