JSPM

Found 32 results for __filename

insert-module-globals

insert implicit module globals into a module-deps stream

  • v7.2.1
  • 92.40
  • Published

current-module-paths

Access to __filename and __dirname within ECMAScript modules

  • v1.1.2
  • 80.34
  • Published

paths.macro

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

    • v3.0.1
    • 66.75
    • Published

    filedirname

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

    • v3.4.0
    • 63.83
    • 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
    • 58.56
    • Published

    @knighted/module

    Converts module differences in source files between ES and CommonJS.

    • v1.0.0-alpha.8
    • 56.39
    • 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.95
    • 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
    • 31.61
    • Published

    @darkobits/fd-name

    ESM replacements for __dirname and __filename.

    • v0.1.7
    • 29.08
    • Published

    umeta

    A micro helper for `import.meta` data

    • v0.2.4
    • 23.70
    • Published

    module-scope

    📍 '__dirname' and '__filename' in harmony modules

    • v1.1.0
    • 22.82
    • Published

    dirfilename

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

    • v1.1.1
    • 15.19
    • Published

    babel-plugin-paths

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

      • v1.0.0
      • 12.65
      • Published

      als-module-info

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

        • v0.1.1
        • 9.84
        • Published

        esmeta

        Handy function to handle import.meta

        • v0.1.0
        • 8.56
        • Published

        tiny-filename

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

        • v1.0.2
        • 7.89
        • Published

        esm-pathnames

        You can use __dirname and __filename when using ESM

        • v1.0.15
        • 6.39
        • Published

        emeta

        get import.meta.url for commonJS

        • v1.0.0
        • 4.98
        • 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.99
          • Published

          esm-file-dir

          __dirname and __filename in ES Modules without the need for imports

          • v1.1.0
          • 2.77
          • Published

          iesmo

          A fast ESM tools

          • v0.0.2
          • 2.77
          • Published

          esm-dirname-polyfill

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

          • v1.0.0
          • 2.55
          • 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