MCPcopy Index your code
hub / github.com/ionic-team/ionic-framework / ifExists

Function ifExists

core/scripts/treeshaking.js:57–59  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

55}
56
57function ifExists(file) {
58 return fs.existsSync(file) ? file : null;
59}
60
61async function check(input) {
62 const resolved = path.resolve(input);

Callers 1

resolveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected