JSPM

Found 33 results for __filename

insert-module-globals

insert implicit module globals into a module-deps stream

  • v7.2.1
  • 94.94
  • Published

current-module-paths

Access to __filename and __dirname within ECMAScript modules

  • v1.1.2
  • 82.56
  • Published

paths.macro

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

    • v3.0.1
    • 67.97
    • Published

    filedirname

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

    • v3.4.0
    • 66.46
    • 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
    • 60.66
    • Published

    dirname-filename-esm

    Easy __dirname and __filename alternatives for ES Modules

    • v1.1.2
    • 59.51
    • Published

    @knighted/module

    Converts module differences in source files between ES and CommonJS.

    • v1.0.0-alpha.8
    • 56.42
    • 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.31
    • 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
    • 32.52
    • Published

    @darkobits/fd-name

    ESM replacements for __dirname and __filename.

    • v0.1.7
    • 27.69
    • Published

    umeta

    A micro helper for `import.meta` data

    • v0.2.4
    • 24.88
    • Published

    dirfilename

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

    • v1.1.1
    • 17.85
    • Published

    module-scope

    📍 '__dirname' and '__filename' in harmony modules

    • v1.1.0
    • 17.84
    • Published

    esm-pathnames

    You can use __dirname and __filename when using ESM

    • v1.0.15
    • 16.63
    • Published

    babel-plugin-paths

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

      • v1.0.0
      • 12.57
      • Published

      gjs-require

      A require like function for GJS

      • v0.3.0
      • 11.37
      • Published

      als-module-info

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

        • v0.1.1
        • 9.80
        • Published

        tiny-filename

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

        • v1.0.2
        • 8.11
        • Published

        emeta

        get import.meta.url for commonJS

        • v1.0.0
        • 7.89
        • Published

        esmeta

        Handy function to handle import.meta

        • v0.1.0
        • 7.41
        • Published

        es6-dirname-fix

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

          • v1.0.1
          • 6.73
          • 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.63
          • Published

          @simbo/import-meta-path

          A small utility for safely deriving absolute file and directory paths from import.meta in Node.js, with a consistent fallback order.

          • 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