JSPM

Found 42 results for __dirname

insert-module-globals

insert implicit module globals into a module-deps stream

  • v7.2.1
  • 96.95
  • Published

desm

get the file directory from import.meta.url

  • v1.3.1
  • 88.06
  • Published

current-module-paths

Access to __filename and __dirname within ECMAScript modules

  • v1.1.2
  • 84.32
  • Published

paths.macro

Babel plugin that returns an object containing paths like __dirname and __filename as static values

    • v3.0.1
    • 64.17
    • Published

    filedirname

    Fetch the current file and directory path, no matter your environment (Deno, Node.js, Web Browsers, ESM, CJS)

    • v3.4.0
    • 63.59
    • Published

    dirname-filename-esm

    Easy __dirname and __filename alternatives for ES Modules

    • v1.1.2
    • 62.10
    • Published

    common-es

    provides utilities for nodejs to be able to resolve es modules, such as providing the __dirname and __filename variables

    • v1.1.0
    • 58.99
    • Published

    @knighted/module

    Converts module differences in source files between ES and CommonJS.

    • v1.0.0-alpha.8
    • 55.29
    • Published

    tiny-dirname

    A tiny isomorphic ESM alternative to Node's __dirname global.

    • v1.0.2
    • 52.85
    • Published

    path-here

    A simple module to get the path with __dirname

    • v1.1.1
    • 40.85
    • Published

    commonjs-shim

    [![CI](https://github.com/zirkelc/commonjs-shim/actions/workflows/ci.yml/badge.svg)](https://github.com/zirkelc/commonjs-shim/actions/workflows/ci.yml) [![npm](https://img.shields.io/npm/dt/commonjs-shim?label=commonjs-shim)](https://www.npmjs.com/package

    • v1.1.0
    • 37.72
    • Published

    @darkobits/fd-name

    ESM replacements for __dirname and __filename.

    • v0.1.7
    • 28.71
    • Published

    umeta

    A micro helper for `import.meta` data

    • v0.2.4
    • 22.74
    • Published

    module-scope

    📍 '__dirname' and '__filename' in harmony modules

    • v1.1.0
    • 22.36
    • Published

    dirfilename

    Alternatives to `__dirname` and `__filename` when using ES modules.

    • v1.1.1
    • 14.89
    • Published

    es-dirmodule

    convert __dirname from CommonJS into ESModule System

      • v1.0.0
      • 13.17
      • Published

      usher-xdg

      Suggest paths for where to save what, trying to follow OS-specific conventions.

      • v0.0.4
      • 13.08
      • Published

      babel-plugin-paths

      Babel plugin that returns an object containing paths like __dirname and __filename as static values

        • v1.0.0
        • 11.25
        • Published

        dirname-for-module

        The most used and necessary variable for projects in node js

          • v1.0.6
          • 9.70
          • Published

          als-module-info

          A utility for easy retrieval of __dirname and __filename in Node.js ES6 modules.

            • v0.1.1
            • 9.65
            • Published

            esmeta

            Handy function to handle import.meta

            • v0.1.0
            • 8.45
            • Published

            es2015-dirname

            A module for using the __dirname with the "module" type for node

              • v1.1.2
              • 6.45
              • Published

              lazy-dir

              Lazy define current directory

              • v1.0.1
              • 6.40
              • Published

              esm-pathnames

              You can use __dirname and __filename when using ESM

              • v1.0.15
              • 6.37
              • Published

              emeta

              get import.meta.url for commonJS

              • v1.0.0
              • 4.88
              • Published

              es6-dirname-fix

              Packet to provide a kind of desicion because of __dirname and __filename are deprecated within es6 modules

                • v1.0.1
                • 2.92
                • Published

                esm-file-dir

                __dirname and __filename in ES Modules without the need for imports

                • v1.1.0
                • 2.74
                • Published

                iesmo

                A fast ESM tools

                • v0.0.2
                • 2.74
                • Published

                esm-dirname-polyfill

                Polyfill of the `import.meta.dirname` and `import.meta.filename`.

                • v1.0.0
                • 2.68
                • Published

                esmdir

                Fast ESModules __dirname alternative

                • v1.0.0
                • 0.00
                • Published

                esm-consts

                work with esm __filepath and __dirname pathing constants in imports as in commonjs nodejs environment

                • v1.0.0
                • 0.00
                • Published

                require-from-es

                This module, require-from-es, makes require, __dirname and __filename work flawlessly in ES-modules.

                • v1.0.3
                • 0.00
                • Published

                gjs-require

                A require like function for GJS

                • v0.3.0
                • 0.00
                • Published