Polyman Documentation - v3.0.0
    Preparing search index...

    Function isCppSource

    • Whether a path points at a C++ source (.cpp, .cc or .cxx).

      Parameters

      • filePath: string

        Path or file name to inspect

      Returns boolean

      True when the extension is a C++ one

      isCppSource('solutions/main.cc'); // true
      isCppSource('solutions/main.py'); // false