node-cooper-fastify - v0.2.0
    Preparing search index...

    Function projectRoot

    • The project root: the directory of the nearest package.json found walking up from cwd, else cwd itself.

      The same rule cooper-config finds config/config.casc by, so a relative !file path and the document are read from one directory. Repeated here because cooper-config does not export it.

      Parameters

      • Optionalcwd: string = ...

        where to start (default process.cwd())

      Returns string

      an absolute path