Function getPackageAndFormat

    • Attempts to find the nearest package.json via getPackage then passes the results to formatPackage.

      Parameters

      Returns PackageObjFormatted | undefined

      Formatted package.json or undefined.