Expand description
One parse per JSON file per process: installed.json and the global
config.json are read by the scope analysis, the layout, the
transaction, the installer and the autoloader in the same run. The
parsed value is kept by path and validated on each read against the
file’s (mtime ns, size) — a file rewritten mid-run (installed.json by
the installer) is parsed again; a file removed comes back as absent.
Functions§
- read
- The parsed JSON of
path:Nonewhen the file is absent, unreadable or not JSON (the same answer every caller gave those cases).