JSPM

Found 32 results for __filename

insert-module-globals

insert implicit module globals into a module-deps stream

  • v7.2.1
  • 95.01
  • Published

current-module-paths

Access to __filename and __dirname within ECMAScript modules

  • v1.1.2
  • 81.58
  • Published

filedirname

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

  • v3.4.0
  • 71.52
  • Published

paths.macro

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

    • v3.0.1
    • 69.08
    • Published

    dirname-filename-esm

    Easy __dirname and __filename alternatives for ES Modules

    • v1.1.2
    • 61.00
    • Published

    common-es

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

    • v1.0.1
    • 58.16
    • Published

    @knighted/module

    Converts module differences in source files between ES and CommonJS.

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

    dirfilename

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

    • v1.1.1
    • 38.57
    • 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
    • 35.73
    • Published

    babel-plugin-logger-namespace

    Babel plugin that generates the namespace for creating a logger based on the path of the module

    • v0.4.1
    • 33.09
    • Published

    umeta

    A micro helper for `import.meta` data

    • v0.2.4
    • 30.21
    • Published

    @darkobits/fd-name

    ESM replacements for __dirname and __filename.

    • v0.1.7
    • 28.83
    • Published

    esm-pathnames

    You can use __dirname and __filename when using ESM

    • v1.0.15
    • 23.13
    • Published

    babel-plugin-paths

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

      • v1.0.0
      • 19.26
      • Published

      gjs-require

      A require like function for GJS

      • v0.3.0
      • 17.45
      • Published

      es6-dirname-fix

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

        • v1.0.1
        • 15.63
        • Published

        emeta

        get import.meta.url for commonJS

        • v1.0.0
        • 15.11
        • Published

        esmeta

        Handy function to handle import.meta

        • v0.1.0
        • 14.89
        • Published

        require-from-es

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

        • v1.0.3
        • 13.41
        • Published

        als-module-info

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

          • v0.1.1
          • 12.93
          • Published

          module-scope

          📍 '__dirname' and '__filename' in harmony modules

          • v1.1.0
          • 12.65
          • Published

          esm-consts

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

          • v1.0.0
          • 11.75
          • Published

          esm-dirname-polyfill

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

          • v1.0.0
          • 11.63
          • Published

          esm-file-dir

          __dirname and __filename in ES Modules without the need for imports

          • v1.1.0
          • 11.55
          • Published

          tiny-filename

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

          • v1.0.2
          • 11.06
          • Published

          iesmo

          A fast ESM tools

          • v0.0.2
          • 10.90
          • Published