{"name":"current-module-paths","author":{"name":"Lloyd Brookes","email":"opensource@75lb.com"},"version":"1.1.3","type":"module","description":"Access to __filename and __dirname within ECMAScript modules","repository":{"type":"git","url":"git+https://github.com/75lb/current-module-paths.git"},"exports":{"import":"./index.js","require":"./dist/index.cjs"},"keywords":["__dirname","__filename","module","paths","modules","ESM","ECMAScript","import","commonjs","cjs","mjs"],"license":"MIT","engines":{"node":">=12.17"},"scripts":{"test":"npm run dist && npm run test:ci","dist":"75lb-nature cjs-build index.js","test:ci":"75lb-nature test-runner test/test.mjs test/test.cjs"},"devDependencies":{},"gitHead":"c3aaf76a746ead5cf733f188ea676cfc6bf83e14","_id":"current-module-paths@1.1.3","bugs":{"url":"https://github.com/75lb/current-module-paths/issues"},"homepage":"https://github.com/75lb/current-module-paths#readme","_nodeVersion":"25.0.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-7AH+ZTRKikdK4s1RmY0l6067UD/NZc7p3zZVZxvmnH80G31kr0y0W0E6ibYM4IS01MEm8DiC5FnTcgcgkbFHoA==","shasum":"b106039be7d7e0c59b79e2a2d45c9773850de0ac","tarball":"http://registry-npm.ywwl.com/current-module-paths/download/current-module-paths-1.1.3.tgz","fileCount":5,"unpackedSize":3844,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIBec08a+aAt1GsXVAcOPDHrN5lVDHM/yM+QXJOCPaaHAAiB2xmIqaaSfEsBpWVEZSNnw84zYY5StHqcyEUzIdc3DZw=="}],"size":1846,"noattachment":false,"key":"/current-module-paths/-/current-module-paths-1.1.3.tgz"},"_npmUser":{"name":"75lb","email":"opensource@75lb.com"},"directories":{},"maintainers":[{"name":"75lb","email":"opensource@75lb.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/current-module-paths_1.1.3_1762707040924_0.5297485260389339"},"_hasShrinkwrap":false,"readme":"[![view on npm](https://badgen.net/npm/v/current-module-paths)](https://www.npmjs.org/package/current-module-paths)\n[![npm module downloads](https://badgen.net/npm/dt/current-module-paths)](https://www.npmjs.org/package/current-module-paths)\n[![Gihub repo dependents](https://badgen.net/github/dependents-repo/75lb/current-module-paths)](https://github.com/75lb/current-module-paths/network/dependents?dependent_type=REPOSITORY)\n[![Gihub package dependents](https://badgen.net/github/dependents-pkg/75lb/current-module-paths)](https://github.com/75lb/current-module-paths/network/dependents?dependent_type=PACKAGE)\n[![Node.js CI](https://github.com/75lb/current-module-paths/actions/workflows/node.js.yml/badge.svg)](https://github.com/75lb/current-module-paths/actions/workflows/node.js.yml)\n\n# current-module-paths\n\nAccess to the CommonJS `__filename` and `__dirname` variables within ECMAScript modules.\n\nOnly use this module if your code depends on the above global variables being defined, otherwise use [import.meta](https://nodejs.org/docs/latest/api/esm.html#no-__filename-or-__dirname).\n\n\n```js\nimport currentModulePaths from 'current-module-paths'\n\nconst { __filename, __dirname } = currentModulePaths(import.meta.url)\n```\n\n* * *\n\n&copy; 2021-25 [Lloyd Brookes](https://github.com/75lb) \\<opensource@75lb.com\\>.\n","publish_time":1762707041131,"_cnpm_publish_time":1762707041131,"dist-tags":{"latest":"1.1.3"}}