nsuite - v1.0.1
    Preparing search index...

    Function getDirname

    • Returns the directory name of the given file URL.

      Parameters

      • metaUrl: string

        The file URL to extract the directory name from.

      Returns string

      The directory name of the given file URL.

      import { getDirname } from "nsuite";
      const __dirname = getDirname(import.meta.url);