Documentation
    Preparing search index...

    Function sortJsonFile

    • Reads a json file, sorts it based on a sorting config then writes it back, if available also formats it with prettier. If the file is named package.json it may override some rules to always produce a functional result.

      Parameters

      Returns Promise<boolean>

      was sorted or not