SonarJS linter helper functions
    Preparing search index...

    Function readFileSync

    • Synchronous read of file contents from a file path

      The function gets rid of any Byte Order Marker (BOM) present in the file's header.

      Parameters

      • filePath: string

        the path of a file

      Returns string

      Promise which resolves with the content of the file