{
  "_id": "cross-dirname",
  "maintainers": [
    {
      "name": "jumplink",
      "email": "pascal@artandcode.studio"
    }
  ],
  "keywords": [
    "dirname",
    "cross-platform",
    "esm",
    "cjs",
    "node",
    "deno",
    "gjs"
  ],
  "dist-tags": {
    "latest": "0.1.0"
  },
  "_rev": "5-59ea1731613ddef3d9c69e7e69cf1c42",
  "description": "[Node.js](https://nodejs.org) + [Gjs](https://gjs.guide/) + [Deno](https://deno.land/) module that returns the current script dirname and filename. Similar to `__dirname` and `__filename` but also works in CommonJs and ES modules.",
  "readme": "# cross-dirname\n\n[Node.js](https://nodejs.org) + [Gjs](https://gjs.guide/) + [Deno](https://deno.land/) module that returns the current script dirname and filename. Similar to `__dirname` and `__filename` but also works in CommonJs and ES modules.  \n\n## Installation\n\nOn Node.js and GJS you can install the package as with NPM:\n\n```\nnpm install cross-dirname --save\n```\n\nOn Deno you just need to import this package:\n\n```ts\nimport { getDirname, getFilename } from 'https://deno.land/x/cross_dirname/mod.ts';\n```\n\n## Usage\n\nPlease do not use `getDirname` and `getFilename` in nested other methods, instead always use them in the root of your file, otherwise it may return wrong results.\n\n### Node.js ESM\n\n```js\n// /path/to/the/script.mjs\nimport { getDirname, getFilename } from 'cross-dirname'\n\nconsole.log(getDirname()) // outputs \"/path/to/the\"\nconsole.log(getFilename()) // outputs \"/path/to/the/script.mjs\"\n```\n\n### Node.js CJS\n\n```js\n// /path/to/the/script.cjs\nconst { getDirname, getFilename } = require('cross-dirname');\n\nconsole.log(getDirname() === __dirname) // true\nconsole.log(getFilename() === __filename) // true\n```\n\n### Deno\n\n```ts\n// /path/to/the/script.ts\nimport { getDirname, getFilename } from 'https://deno.land/x/cross_dirname@v0.0.4/mod.ts';\n\nconsole.log(getDirname()); // outputs \"/path/to/the\"\nconsole.log(getFilename()); // outputs \"/path/to/the/script.ts\"\n```\n\n### GJS\n\nYou can use NPM packages in GJS with a bundler like [esbuild](https://esbuild.github.io/).\n\nTake a look at the examples for an [GJS + esbuild example](/examples/gjs), you can start the example like this: \n\n```bash\n# Install dev dependencies \nnpm install\n\n# Go to the example\ncd examples/gjs\n\n# Bundle src/index.js\nnode esbuild.mjs\n\n# Run the bundled index.js\ngjs -m index.js\n```\n\n### Examples\n\nYou can run the examples with\n\n```bash\n\nnpm install\nnpm run build\n\ndeno run ./examples/deno/index.ts \n# -> /.../examples/deno\n\nnode ./examples/node/index.cjs \n# -> /.../examples/node\n\nnode ./examples/node/index.mjs \n# -> /.../examples/node\n\nnode ./examples/gjs/esbuild.mjs\ngjs -m ./examples/gjs/index.js \n# -> /.../examples/gjs\n```\n\n### Contributions\n\nContributions for more platforms are welcome :)\n\n### Tests\n\nThis module has been tested on the following platforms:\n\n| Runtime | Type   | Platform | State    |\n|---------|--------|----------|----------|\n| Node.js | CJS    | Linux    | ✔        |\n| Node.js | CJS    | MacOS    | ✔        |\n| Node.js | CJS    | Windows  | ✔        |\n| Node.js | ESM    | Linux    | ✔        |\n| Node.js | ESM    | MacOS    | ✔        |\n| Node.js | ESM    | Windows  | ✔        |\n| Deno    | ESM    | Linux    | ✔        |\n| Deno    | ESM    | MacOS    | ✔        |\n| Deno    | ESM    | Windows  | ✔        |\n| Gjs     | ESM    | Linux    | ✔        |\n| Gjs     | ESM    | MacOS    | UNTESTED |\n| Gjs     | ESM    | Windows  | UNTESTED |\n| Chrome  | ESM    | Browser  | ✔        |\n| Chrome  | CJS    | Browser  | ✔        |\n\nYou can run all tests with:\n\n```\nnpm run test\n```\n\nOr the tests for a special runtime:\n\n```\nnpm run test:node\nnpm run test:deno\nnpm run test:gjs\nnpm run test:browser´\n```",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/JumpLink/cross-dirname.git"
  },
  "bugs": {
    "url": "https://github.com/JumpLink/cross-dirname/issues"
  },
  "license": "MIT",
  "versions": {
    "0.0.2": {
      "name": "cross-dirname",
      "version": "0.0.2",
      "type": "commonjs",
      "main": "./dist/cjs/index.cjs",
      "module": "./dist/esm/index.mjs",
      "types": "./dist/types/index.d.ts",
      "exports": {
        ".": {
          "require": "./dist/cjs/index.cjs",
          "default": "./dist/esm/index.mjs"
        }
      },
      "scripts": {
        "clear": "rm -rf dist",
        "build": "npm run clear && npm run build:cjs && npm run build:esm && npm run build:types",
        "build:cjs": "tsc && mv ./dist/cjs/index.js ./dist/cjs/index.cjs",
        "build:esm": "tsc --project tsconfig.esm.json && mv ./dist/esm/index.js ./dist/esm/index.mjs",
        "build:types": "tsc --project tsconfig.types.json",
        "test": "npm run test:node && npm run test:deno && npm run test:gjs",
        "test:node": "mocha test/node",
        "test:gjs": "gjs -m ./test/gjs/dirname.test.mjs",
        "test:deno": "deno test ./test/deno/dirname.test.mjs"
      },
      "keywords": [
        "dirname",
        "esm",
        "cjs"
      ],
      "devDependencies": {
        "chai": "^4.3.6",
        "esm": "^3.2.25",
        "mocha": "^10.0.0",
        "typescript": "^4.7.4"
      },
      "gitHead": "10d51a13d8a596fde1a16d41b1922bfb7d03990c",
      "description": "Node.js / Gjs / Deno module that returns the current script dirname. Similar to `__dirname` but also works in CommonJs and ES modules.",
      "_id": "cross-dirname@0.0.2",
      "_nodeVersion": "16.16.0",
      "_npmVersion": "8.11.0",
      "dist": {
        "integrity": "sha512-eyxcHrBQp+4wl26Eps4DcCchUpSrSOykYJqSsnsH2caJZQotsfhWKeKTHk8qsUCcxdL6oXW+9L9jPMZ1yw7dEw==",
        "shasum": "ef022e9eba569b896036ead50e38e99ad0972bd0",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/cross-dirname/-/cross-dirname-0.0.2.tgz",
        "fileCount": 14,
        "unpackedSize": 10472,
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIQD3BXzmeMce2cOeE/M7JQ7saXbgBlEbNgdaLmOQzSGa/QIgSPiGBgwEqkPOxQqh4B8pd2eQxGelWsWIFV8oFp0jJDs="
          }
        ],
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi2RAmACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr/9hAAiqWeZIAX6/DYeeRJPJXz+TxVLvjFwEr0ZMG+6sniGOoag1yF\r\n1R4PWRxItqdNWXQzcqHV+IrkyjvejFxJWGUtVb4APh0c+Nm2pbKLCiniQLfR\r\ngGqTfsU9oK8+6y/5KKDYCbK4ZLCSurg9+NOXeLh8BKos2YcRY9A83lhXu2xH\r\nI8DOXQshZxxR4rqhdq3zP7tPr37kSDKOebshDFuGOMsO+ja+NNfDc6O6JKv3\r\nIkV7LmjuDYjnj/FChbj3h5GWUEKuXHjyhmuKC0OJ9kozQZcisnLO7bD7yB5W\r\nBX0e0JzjoAZxkNY4K55WJGdMw2wI9j8mCZPFe62fGfXmx5cBhxKzgFl3pVcf\r\nmhScLXR8d8SMNoQWGaKShMEqZHhuYSi4YMBgMgyK04yd8K3v/pgqau9L3zAL\r\nWMDuBXY7Teoxk5GBc3x6NC2zrYc76AOIneWN/66H7RJM/GTZQTnVHDWkd524\r\niGFChnemfDBlpitCHnFglVDsJRwFKsxG9n2TxO7eSkUBkOUIx21jjHgKZVvn\r\nCtsEz1fmd/agwURzz5YIMe2JnYCN7vFpTgOfPJS8+DGgDuQuZU+8S0NCHNA0\r\n1vE346mUAvcXyeBHQon9mfK39zbuJoJCjl4pF6ueEvwxs0jkpSlI4nYcIMPx\r\nCAh9Ywtpbx6AjLGez7kU/1QmkzdChWhRSRI=\r\n=BeCC\r\n-----END PGP SIGNATURE-----\r\n"
      },
      "_npmUser": {
        "name": "jumplink",
        "email": "pascal@artandcode.studio"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "jumplink",
          "email": "pascal@artandcode.studio"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/cross-dirname_0.0.2_1658392614601_0.3683010357372998"
      },
      "_hasShrinkwrap": false
    },
    "0.0.3": {
      "name": "cross-dirname",
      "version": "0.0.3",
      "type": "commonjs",
      "main": "./dist/cjs/index.cjs",
      "module": "./dist/esm/index.mjs",
      "types": "./dist/types/index.d.ts",
      "exports": {
        ".": {
          "require": "./dist/cjs/index.cjs",
          "default": "./dist/esm/index.mjs"
        }
      },
      "scripts": {
        "clear": "rm -rf dist",
        "build": "npm run clear && npm run build:cjs && npm run build:esm && npm run build:types",
        "build:cjs": "tsc && mv ./dist/cjs/index.js ./dist/cjs/index.cjs",
        "build:esm": "tsc --project tsconfig.esm.json && mv ./dist/esm/index.js ./dist/esm/index.mjs",
        "build:types": "tsc --project tsconfig.types.json",
        "test": "npm run test:node && npm run test:deno && npm run test:gjs",
        "test:node": "mocha test/node",
        "test:gjs": "gjs -m ./test/gjs/dirname.test.mjs",
        "test:deno": "deno test ./test/deno/dirname.test.mjs"
      },
      "keywords": [
        "dirname",
        "cross-platform",
        "esm",
        "cjs",
        "node",
        "deno",
        "gjs"
      ],
      "url": "https://github.com/JumpLink/cross-dirname",
      "license": "MIT",
      "repository": {
        "type": "git",
        "url": "git+https://github.com/JumpLink/cross-dirname.git"
      },
      "devDependencies": {
        "chai": "^4.3.6",
        "esm": "^3.2.25",
        "mocha": "^10.0.0",
        "typescript": "^4.7.4"
      },
      "gitHead": "271baa791d43f1985a012abb89ed488607378947",
      "description": "Node.js / Gjs / Deno module that returns the current script dirname. Similar to `__dirname` but also works in CommonJs and ES modules.",
      "bugs": {
        "url": "https://github.com/JumpLink/cross-dirname/issues"
      },
      "homepage": "https://github.com/JumpLink/cross-dirname#readme",
      "_id": "cross-dirname@0.0.3",
      "_nodeVersion": "16.16.0",
      "_npmVersion": "8.11.0",
      "dist": {
        "integrity": "sha512-b1nvmg/tSb0YxRqkUzh34awMprOG17Knkqo2pfcn6NrDn6ZFeYPVXr3Vwu8MZXSi+laCZq+fpWDpbj0WEYa04w==",
        "shasum": "0e2a4a99586dde8ae8aa5fa7be2800a596a5ea92",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/cross-dirname/-/cross-dirname-0.0.3.tgz",
        "fileCount": 5,
        "unpackedSize": 7653,
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIQCVyTHrizaZp+BpZQhhu+bYGQjlG78ACOjjTA/tbf8ZVQIgKkO6Cc44w2/nJsrhx0z5SMB0XpNWM0+fo9RattV4VvQ="
          }
        ],
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi2RLMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmob4Q//VuPZV/wbq2yYoF/++cVITDeQktXJDYz7oe2yNUA6jaQRO7ug\r\nu+GMRAStxJNSuhCMnlmTUVUUtnQJRzz9cZVzi6stu62tvbMyZOhbDpmctF7k\r\n6LcY3QmU/lsM2VTJYtc4sRkk1OS2MDai+JJTMUUFWishL7M4oMgfkjxKEHBi\r\ndHCEyOSM0lwztmuxH4hwJrbBuEpo7uzUesWRFTzXHpauJgGIseYzRIDMugCB\r\n5Y3wV1Cx9SPco65TCKT04d3LtMR9b3qc5h0tIydya8w3bQl81kWazuFOMD6s\r\nGbJxB/S/ow2sJmqGfDuvjtUIlnUPd+5IsCgieEuzT1YQT2f8H2Ets51TKMNN\r\nmdm1QljNBPNDVYQeSWVSErUg0nlF7adfvJ23ouxUwuq52mgMA0lOgOlQig0R\r\nPFko3qYtUFCKLGtCridJT6zBqYSSobrCVa/vXWVl+xQt5O3dOBE4KNzh8myb\r\njqzEaLrlee3i59GqmE6bm2KfbdW7hoY+gzrLEaf3Xkzn73g8400EwkbQbOjK\r\n8IpZYW/Aka6pvTDbD17fK0p4jAe8hL23P9LC+jLGhz5OvhblvNZVazF9Hiqt\r\n5grtygDqxxkzlIxTGoF0mTJdsWChIcO0LXRbo32cMMh5uXuXYJfwaZ5cmhjj\r\ndodsZXcrtGcbv8g5uNzTJny/mTiLiHfZNuc=\r\n=0EYe\r\n-----END PGP SIGNATURE-----\r\n"
      },
      "_npmUser": {
        "name": "jumplink",
        "email": "pascal@artandcode.studio"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "jumplink",
          "email": "pascal@artandcode.studio"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/cross-dirname_0.0.3_1658393292071_0.5762185587212989"
      },
      "_hasShrinkwrap": false
    },
    "0.0.4": {
      "name": "cross-dirname",
      "version": "0.0.4",
      "type": "commonjs",
      "main": "./dist/cjs/index.cjs",
      "module": "./dist/esm/index.mjs",
      "types": "./dist/types/index.d.ts",
      "exports": {
        ".": {
          "require": "./dist/cjs/index.cjs",
          "default": "./dist/esm/index.mjs"
        }
      },
      "scripts": {
        "clear": "rm -rf dist",
        "build": "npm run clear && npm run build:cjs && npm run build:esm && npm run build:types",
        "build:cjs": "tsc && mv ./dist/cjs/index.js ./dist/cjs/index.cjs",
        "build:esm": "tsc --project tsconfig.esm.json && mv ./dist/esm/index.js ./dist/esm/index.mjs",
        "build:types": "tsc --project tsconfig.types.json",
        "test": "npm run test:node && npm run test:deno && npm run test:gjs",
        "test:node": "mocha test/node",
        "test:gjs": "gjs -m ./test/gjs/dirname.test.mjs",
        "test:deno": "deno test ./test/deno/dirname.test.mjs"
      },
      "keywords": [
        "dirname",
        "cross-platform",
        "esm",
        "cjs",
        "node",
        "deno",
        "gjs"
      ],
      "url": "https://github.com/JumpLink/cross-dirname",
      "license": "MIT",
      "repository": {
        "type": "git",
        "url": "git+https://github.com/JumpLink/cross-dirname.git"
      },
      "devDependencies": {
        "chai": "^4.3.6",
        "cross-dirname": "^0.0.3",
        "esbuild": "^0.14.49",
        "esm": "^3.2.25",
        "mocha": "^10.0.0",
        "typescript": "^4.7.4"
      },
      "gitHead": "4642b344ff789b347ee0857328354e887c1954f6",
      "description": "[Node.js](https://nodejs.org) + [Gjs](https://gjs.guide/) + [Deno](https://deno.land/) module that returns the current script dirname. Similar to `__dirname` but also works in CommonJs and ES modules.",
      "bugs": {
        "url": "https://github.com/JumpLink/cross-dirname/issues"
      },
      "homepage": "https://github.com/JumpLink/cross-dirname#readme",
      "_id": "cross-dirname@0.0.4",
      "_nodeVersion": "16.16.0",
      "_npmVersion": "8.11.0",
      "dist": {
        "integrity": "sha512-lrfOUQ8J5CR8shRY8oatsvLPiqnMXu3AvQidP2NTdKALfcJlgwKN71TvbvtSrJoPnZhvyQjju13dtP3vucAQ/Q==",
        "shasum": "aaae22997061cdca76fe54a691f5641f8a42fc3a",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/cross-dirname/-/cross-dirname-0.0.4.tgz",
        "fileCount": 5,
        "unpackedSize": 8893,
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIQCztYUvRKLotJkvPtg66Hm3+fu5dcdesH9r60K+4ibGlAIgHmZEIJVrm+wjWe4qjnMwP8SwgXuSK60cjr3weNdBtC4="
          }
        ],
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi2SVaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpMgQ/8DzB4wv7EDd+m5Tl1mI4R+C9taevHxVNP5JE9pSmdos2ijXrr\r\nBWQI5fUQW9qltMXVWj9kIQM1pX/MhS8Rm20QCRmuqm2oOAkofHhcqUUOzpcJ\r\nMc+wd9As8mL6/fKfktY2hHpwzYqBlo3nmnK1opa6QJlwOtvmQm4WEr7GWaxp\r\nr1SYuGQyEE5R1Y5jmul21sqxwOBGZaafVY+yE5d+FIYTX5PYV+GQt3S5P+R3\r\nz3WJjYo8yO81e4IbO5uC1cC3IVmDHb3z7bXKi0XeWCSI9hnLq6s8UVper12y\r\n6yQUZp2QgEXnrepXfVJrRQQkixObg8FTAPtmO/Wi6YFHj2vgbjNqGW3R69x/\r\nscc5RVEsiGFyPSnxwTqEXWSom2lqMsHec4+Fbh3jpK5nOur2BNLFHR+TVn62\r\naPWPM6lHVOu7IumpgSjt4GjfBuCrMyX2+K648u9CsIRw2Fsm/HDMOeuZL6kn\r\nasEBhMKc6Zx98s7gon9VZskf2z5f7q8CxwkCv/4WHCdGU0chZ+VjDeFDMHpI\r\nEAaQbEJeIAMVPMYnfy6nY6CZSVBIfe8AOSriNUzjpnbTi2W0qqCduwqRLCqD\r\nvKfxR5vuLDpAKzGQ6NWvQCC8p02xMuLVpzea1J0WksRh7qqXskarQ4r4zFNr\r\nBoMOqcAyJa5NeXM1LU60oWy08GPCugHxGMA=\r\n=qpqh\r\n-----END PGP SIGNATURE-----\r\n"
      },
      "_npmUser": {
        "name": "jumplink",
        "email": "pascal@artandcode.studio"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "jumplink",
          "email": "pascal@artandcode.studio"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/cross-dirname_0.0.4_1658398042151_0.9473596232728496"
      },
      "_hasShrinkwrap": false
    },
    "0.0.5": {
      "name": "cross-dirname",
      "version": "0.0.5",
      "type": "commonjs",
      "main": "./dist/cjs/index.cjs",
      "module": "./dist/esm/index.mjs",
      "types": "./dist/types/index.d.ts",
      "exports": {
        ".": {
          "require": "./dist/cjs/index.cjs",
          "default": "./dist/esm/index.mjs"
        }
      },
      "scripts": {
        "clear": "rm -rf dist",
        "build": "npm run clear && npm run build:cjs && npm run build:esm && npm run build:types",
        "build:cjs": "tsc && mv ./dist/cjs/index.js ./dist/cjs/index.cjs",
        "build:esm": "tsc --project tsconfig.esm.json && mv ./dist/esm/index.js ./dist/esm/index.mjs",
        "build:types": "tsc --project tsconfig.types.json",
        "test": "npm run test:node && npm run test:deno && npm run test:gjs",
        "test:node": "mocha test/node",
        "test:gjs": "gjs -m ./test/gjs/dirname.test.mjs",
        "test:deno": "deno test ./test/deno/dirname.test.mjs"
      },
      "keywords": [
        "dirname",
        "cross-platform",
        "esm",
        "cjs",
        "node",
        "deno",
        "gjs"
      ],
      "url": "https://github.com/JumpLink/cross-dirname",
      "license": "MIT",
      "repository": {
        "type": "git",
        "url": "git+https://github.com/JumpLink/cross-dirname.git"
      },
      "devDependencies": {
        "chai": "^4.3.6",
        "cross-dirname": "^0.0.3",
        "esbuild": "^0.14.49",
        "esm": "^3.2.25",
        "mocha": "^10.0.0",
        "typescript": "^4.7.4"
      },
      "gitHead": "9757b49907b60dbef43a10cc059bf9f0aa81d955",
      "description": "[Node.js](https://nodejs.org) + [Gjs](https://gjs.guide/) + [Deno](https://deno.land/) module that returns the current script dirname. Similar to `__dirname` but also works in CommonJs and ES modules.",
      "bugs": {
        "url": "https://github.com/JumpLink/cross-dirname/issues"
      },
      "homepage": "https://github.com/JumpLink/cross-dirname#readme",
      "_id": "cross-dirname@0.0.5",
      "_nodeVersion": "16.16.0",
      "_npmVersion": "8.11.0",
      "dist": {
        "integrity": "sha512-BHYe2ivO+Ri9cj2O9hOqoRop1q2+k8azjyQSfaDKuA3tDh79O7ei4fZXzZOC8QmY4qkLZ7/gGH8DFWsfFechsA==",
        "shasum": "1dff735ed5de8223df0ddf38066608f3fcca70e5",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/cross-dirname/-/cross-dirname-0.0.5.tgz",
        "fileCount": 5,
        "unpackedSize": 8893,
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEYCIQDmWJk8D9lxLHkqE53e5J2nhVLg+mYcuP6fuE6BC5azzwIhAME+UoFCSEJ1+G+gZbgXcBM4VgJCsJNe9VLnqGq8xPKT"
          }
        ],
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi2SXGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoMLQ//dKpqzlrP3JuZLONiNr08J+AHjGWj83PLqqFRibml5V4FAW/F\r\nLP0x0E84nyhiuBMzzh0i4io3X+WF8iNLzC6Vb6NxBMwwu6ZvMa9HE5IuMQR8\r\nBC53KMPlU1nqpXY+h9qQTHyWiPxhl5zYLh17nirqCeBnUbEQrj5SwW0Kss+5\r\nP7SBjgktN5igEfRH9+2xHAxEMDDmHXin4jECMhUlcOK+Lch6Phymx7vX1WuN\r\nC4cPy/XLv9yDansRZh7hDI74/CUL9uV6nU6la+mFVF+zv+kejsrdEvh9lvRe\r\nlkefhZJtf0yq3NW/Gz94DpMcloKjdQJEPPMUDrBRHB5jCYCAjg93/CJgCGHH\r\nyboVGPkx0nUEL064hLdk8xUkkti6ldXw5+97XeQXMOgwewsbG33McR/WWDa+\r\ntsQ1zAAiy7ZfiMp11eFegQEkAjCyl6jYhXXSxoaQcLqGMmOP/SslO/T4NFBg\r\nwGoAdbwshH8yKiqZzPhUCgtieiWIJ4BInDCAskwEymqRyXqLVkNBUrKYNjzr\r\np3vAeQabcdC6zaI/vB18U3qm7iXU2DtxZiNPCFJdxzUzlEZ2MxaQkR4dCX2Y\r\n9g2mDlkpbkM5gBaI2eHk/O0Tze/oSZvf4cV9OLQKMVTdFIoTUVvV6aC7wXBw\r\nNFaCGABkn4TxyFliuuzWCiR9OKfOHbfNF3M=\r\n=jBZX\r\n-----END PGP SIGNATURE-----\r\n"
      },
      "_npmUser": {
        "name": "jumplink",
        "email": "pascal@artandcode.studio"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "jumplink",
          "email": "pascal@artandcode.studio"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/cross-dirname_0.0.5_1658398150113_0.5580867367713915"
      },
      "_hasShrinkwrap": false
    },
    "0.0.6": {
      "name": "cross-dirname",
      "version": "0.0.6",
      "type": "commonjs",
      "main": "./dist/cjs/index.cjs",
      "module": "./dist/esm/index.mjs",
      "types": "./dist/types/index.d.ts",
      "exports": {
        ".": {
          "require": "./dist/cjs/index.cjs",
          "default": "./dist/esm/index.mjs"
        }
      },
      "scripts": {
        "clear": "rm -rf dist",
        "build": "npm run clear && npm run build:cjs && npm run build:esm && npm run build:types",
        "build:cjs": "tsc && mv ./dist/cjs/index.js ./dist/cjs/index.cjs",
        "build:esm": "tsc --project tsconfig.esm.json && mv ./dist/esm/index.js ./dist/esm/index.mjs",
        "build:types": "tsc --project tsconfig.types.json",
        "test": "npm run test:node && npm run test:deno && npm run test:gjs && npm run test:browser",
        "test:node": "mocha test/node",
        "test:gjs": "node test/browser/esbuild.mjs && gjs -m ./test/gjs/dirname.test.mjs",
        "test:deno": "deno test ./test/deno/dirname.test.mjs",
        "test:browser": "npm run test:browser:esm && npm run test:browser:cjs",
        "test:browser:esm": "node test/browser/esbuild.mjs && mocha-headless-chrome -t 120000 -f ./test/browser/index.html",
        "test:browser:cjs": "node test/browser/esbuild.cjs && mocha-headless-chrome -t 120000 -f ./test/browser/index.html"
      },
      "keywords": [
        "dirname",
        "cross-platform",
        "esm",
        "cjs",
        "node",
        "deno",
        "gjs"
      ],
      "url": "https://github.com/JumpLink/cross-dirname",
      "license": "MIT",
      "repository": {
        "type": "git",
        "url": "git+https://github.com/JumpLink/cross-dirname.git"
      },
      "devDependencies": {
        "chai": "^4.3.6",
        "cross-dirname": "^0.0.6",
        "esbuild": "^0.14.49",
        "esm": "^3.2.25",
        "mocha": "^10.0.0",
        "mocha-headless-chrome": "^4.0.0",
        "typescript": "^4.7.4"
      },
      "gitHead": "d6eac9dc86fffff8adb7fd3d545c391c994b07a8",
      "description": "[Node.js](https://nodejs.org) + [Gjs](https://gjs.guide/) + [Deno](https://deno.land/) module that returns the current script dirname. Similar to `__dirname` but also works in CommonJs and ES modules.",
      "bugs": {
        "url": "https://github.com/JumpLink/cross-dirname/issues"
      },
      "homepage": "https://github.com/JumpLink/cross-dirname#readme",
      "_id": "cross-dirname@0.0.6",
      "_nodeVersion": "16.16.0",
      "_npmVersion": "8.11.0",
      "dist": {
        "integrity": "sha512-HBAt99Skegib2AaMOZy1nfDwowBbWWANHYM67mXhyFtVavZwpVYn7rlhJVf3oXaWvhx75Esvx+4XWOuEKuOk7Q==",
        "shasum": "81585c12a9d3ff0ae0aa43fdd3048affbff200fe",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/cross-dirname/-/cross-dirname-0.0.6.tgz",
        "fileCount": 5,
        "unpackedSize": 9360,
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEYCIQCE4495ioPl03g8gBUnmSblEvLRK5MW79XaTNfXaQ6+3QIhAJffhp0CqQpcjDRpmzauHjM1PoNyKQ76gHZr4IDGHQ6p"
          }
        ],
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi2TS2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpQcQ/+MMPLlvr22Tf1gmDExos58Emybe+vrZdURyWe8N+VV3M0cvbP\r\ndPqZZZNz4CKuhUD7yb45deNPMdgdjofpTNOy59vkwDXfKGmpJ6yVz9bDBM+0\r\nKelzfW8cdWRC39Rgh1XyYPNRBVbm1VrVCO3jr/CyDCzXm82HtI+GAlz/wlZ1\r\n/e0hutUcKGj75jVpSq6Y30rFg+R2JQr7ytS6rKLjYjRHKm4v0VBOqKr9rEgo\r\nt334Di2f7l8uLe8SOGinix5ip5LQY16Vd1il6YVK/zz3LnLLYPx/lvlQokew\r\nsNY2Terw9frWeDtxFfI54yGtAwfLvGZXGDEsnQe7Obw0qjUZYdfYzpvpSKU9\r\nkTqinnzG0M+zitVYPpDQkaFrTggxQixwMYzyU0deG6wIbhQDqnHYpULPaqe+\r\nv3r1PV2J0FXAExuPxGKHKgbxaH0Eo4Ccjt0gqQI80cikoasZgsiSD1zjiWbk\r\nwg7h2+vIpDqzpKmak9M6mYIH9jpsp7pjeRSMCDDysi5CCfSO5Jna+hZsi/q3\r\n/SpQSBamRB1kQ9+Mfw4c/GX9CJ2NEvoTqBJbP3/vQpOQb/3G3Z5hFCXOxYgg\r\nQ5q8jy6YW+vB99Buew5wKWgAB0CihZs3BktI2U4SYFR05fQFw1fyW01QfxPp\r\nRdi74Ot+FebBWkK62LXH/7EgDXRGLYQ3vLI=\r\n=HQCP\r\n-----END PGP SIGNATURE-----\r\n"
      },
      "_npmUser": {
        "name": "jumplink",
        "email": "pascal@artandcode.studio"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "jumplink",
          "email": "pascal@artandcode.studio"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/cross-dirname_0.0.6_1658401974014_0.051270836110252294"
      },
      "_hasShrinkwrap": false
    },
    "0.1.0": {
      "name": "cross-dirname",
      "version": "0.1.0",
      "type": "commonjs",
      "main": "./dist/cjs/index.cjs",
      "module": "./dist/esm/index.mjs",
      "types": "./dist/types/index.d.ts",
      "exports": {
        ".": {
          "require": "./dist/cjs/index.cjs",
          "default": "./dist/esm/index.mjs"
        }
      },
      "scripts": {
        "clear": "rm -rf dist",
        "build": "npm run clear && npm run build:cjs && npm run build:esm && npm run build:types",
        "build:cjs": "tsc && mv ./dist/cjs/index.js ./dist/cjs/index.cjs",
        "build:esm": "tsc --project tsconfig.esm.json && mv ./dist/esm/index.js ./dist/esm/index.mjs",
        "build:types": "tsc --project tsconfig.types.json",
        "test": "npm run test:node && npm run test:deno && npm run test:gjs && npm run test:browser",
        "test:node": "mocha test/node",
        "test:gjs": "node test/browser/esbuild.mjs && gjs -m ./test/gjs/base.test.mjs",
        "test:deno": "deno test ./test/deno/base.test.mjs",
        "test:browser": "npm run test:browser:esm && npm run test:browser:cjs",
        "test:browser:esm": "node test/browser/esbuild.mjs && mocha-headless-chrome --timeout 120000 --polling 1000 -f ./test/browser/index.html",
        "test:browser:cjs": "node test/browser/esbuild.cjs && mocha-headless-chrome --timeout 120000 --polling 1000 -f ./test/browser/index.html"
      },
      "keywords": [
        "dirname",
        "cross-platform",
        "esm",
        "cjs",
        "node",
        "deno",
        "gjs"
      ],
      "url": "https://github.com/JumpLink/cross-dirname",
      "license": "MIT",
      "repository": {
        "type": "git",
        "url": "git+https://github.com/JumpLink/cross-dirname.git"
      },
      "devDependencies": {
        "chai": "^4.3.6",
        "cross-dirname": "^0.0.6",
        "esbuild": "^0.14.49",
        "esm": "^3.2.25",
        "mocha": "^10.0.0",
        "mocha-headless-chrome": "^4.0.0",
        "typescript": "^4.7.4"
      },
      "gitHead": "cf2a0674f338e21e53d752933e748849399cd104",
      "description": "[Node.js](https://nodejs.org) + [Gjs](https://gjs.guide/) + [Deno](https://deno.land/) module that returns the current script dirname and filename. Similar to `__dirname` and `__filename` but also works in CommonJs and ES modules.",
      "bugs": {
        "url": "https://github.com/JumpLink/cross-dirname/issues"
      },
      "homepage": "https://github.com/JumpLink/cross-dirname#readme",
      "_id": "cross-dirname@0.1.0",
      "_nodeVersion": "16.16.0",
      "_npmVersion": "8.11.0",
      "dist": {
        "integrity": "sha512-+R08/oI0nl3vfPcqftZRpytksBXDzOUveBq/NBVx0sUp1axwzPQrKinNx5yd5sxPu8j1wIy8AfnVQ+5eFdha6Q==",
        "shasum": "b899599f30a5389f59e78c150e19f957ad16a37c",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/cross-dirname/-/cross-dirname-0.1.0.tgz",
        "fileCount": 5,
        "unpackedSize": 10449,
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIHMY7Ji9DJKMm/yuHTeuTfcNxocPSs4HVJTjK+p8bAsaAiEAjl3ORDX2Y7XLtdqaHB7FN7vBQ3iC0QPtPnEA0fCAsDU="
          }
        ],
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi2s2YACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmohOA/+IhPPGR6MYqjqtmo3bM6HpNE7DmNIeuDkU64paezdGkXVQD5h\r\nGjcRPgAh2Dkk0dpfRLd0Nw+BSHs1b0Ld6ftAfSgCesHBfzKgpeKyDvVQRPvi\r\naMLfyF8kCMzD/YsEMpU0nwwSLh39Sm9iV01tNUudwvphs0L2eQkw6TbCm88K\r\nxYtwjmNUOYvBWhfEWaF/NmSWsZNqzEswNjRCc4Uia0JPVCoZlJS4yGxA2L+W\r\nbhWba4lDt84nk5TdBaaMpyIO/X1lfnhVx9RG15jrJ9q7a2EGs5EupD0peE71\r\napNsOEjO8Z4q5PO6qh2kzzVrt4EAMtmfopwPjkCY6cbceGSLFI4RzFKYRDHd\r\n8BPJnBq2AqNjH2uFE7tNhCLFGvDLSSGdgYmKdQFewnHLjZoOu1zaqF1gGtUF\r\ngWhc//u7VIqIYk2zLvOkWeFc3hqsv/uQWsR49SEFaUjGkdi2EyIYZ8XuVpt6\r\nhbdEQfj8KXoQzqQr+X4Vl8CDIEJD48gHIPs4RoB/36svzA9Z4BomHOuDVxgR\r\nrcTQNgjLl4/SwxfCFS2r8379ukzcEirkRysAJh046WsFYNyp949IQAxN92yE\r\nJbXHyhPCPENBK/eEHi8xBwfP5Rmlh9msUJTYFXUA4+5837y4MsMx3U6LwrLS\r\nElxmgJsr2gSC02zCfoKcGqNsUszKmiMWCNA=\r\n=fPXp\r\n-----END PGP SIGNATURE-----\r\n"
      },
      "_npmUser": {
        "name": "jumplink",
        "email": "pascal@artandcode.studio"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "jumplink",
          "email": "pascal@artandcode.studio"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/cross-dirname_0.1.0_1658506648088_0.6238243332719275"
      },
      "_hasShrinkwrap": false
    }
  },
  "name": "cross-dirname",
  "time": {
    "created": "2022-07-21T08:36:54.600Z",
    "0.0.2": "2022-07-21T08:36:54.781Z",
    "modified": "2026-05-22T13:18:10.648Z",
    "0.0.3": "2022-07-21T08:48:12.211Z",
    "0.0.4": "2022-07-21T10:07:22.293Z",
    "0.0.5": "2022-07-21T10:09:10.306Z",
    "0.0.6": "2022-07-21T11:12:54.175Z",
    "0.1.0": "2022-07-22T16:17:28.289Z"
  },
  "readmeFilename": "README.md",
  "homepage": "https://github.com/JumpLink/cross-dirname#readme"
}