inspectTarget
Looks at the target without changing it.
Looks at the target without changing it.
Import#
ts
import { inspectTarget } from "create-shadow-app";
Signature#
ts
function inspectTarget(target: string): TargetState
Parameters#
| Name | Description |
|---|---|
target |
Absolute path. |
Returns#
missing, empty or not-empty.
Throws#
- Error when the path exists and is not a directory, or when it cannot be read (for example because a parent of it is a file).
Examples#
ts
inspectTarget("/does/not/exist/app"); // "missing"