{"_id":"current-module-paths","_rev":"3918705","name":"current-module-paths","description":"Access to __filename and __dirname within ECMAScript modules","dist-tags":{"latest":"1.1.2"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"time":{"modified":"2025-09-01T01:21:05.000Z","created":"2021-04-25T10:01:34.487Z","1.1.2":"2024-08-24T20:39:10.261Z","1.1.1":"2023-05-02T12:17:59.787Z","1.1.0":"2021-08-13T11:26:14.801Z","1.0.0":"2021-07-03T17:36:05.471Z","0.1.0":"2021-04-25T10:01:34.487Z"},"users":{},"author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/75lb/current-module-paths.git"},"versions":{"1.1.2":{"name":"current-module-paths","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"1.1.2","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 test/test.mjs test/test.cjs"},"devDependencies":{},"_id":"current-module-paths@1.1.2","gitHead":"b3c8e0af92189130e13f3a665ae21dbfd1c702c3","bugs":{"url":"https://github.com/75lb/current-module-paths/issues"},"homepage":"https://github.com/75lb/current-module-paths#readme","_nodeVersion":"22.7.0","_npmVersion":"10.8.2","dist":{"shasum":"13a2d821b2f864c3adead261b7954b068510c32f","size":1776,"noattachment":false,"key":"/current-module-paths/-/current-module-paths-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/current-module-paths/download/current-module-paths-1.1.2.tgz"},"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"directories":{},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/current-module-paths_1.1.2_1724531950089_0.6644219087890642"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-08-24T20:39:10.261Z","publish_time":1724531950261,"_source_registry_name":"default","_cnpm_publish_time":1724531950261},"1.1.1":{"name":"current-module-paths","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"1.1.1","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":"test-runner test/test.?js"},"devDependencies":{"test-runner":"^0.10.1"},"gitHead":"54224debde64ce780bbe71f1ecd74fdd0498ae0b","bugs":{"url":"https://github.com/75lb/current-module-paths/issues"},"homepage":"https://github.com/75lb/current-module-paths#readme","_id":"current-module-paths@1.1.1","_nodeVersion":"20.0.0","_npmVersion":"9.6.5","dist":{"shasum":"f0ee3298cd1a6839503b46796aac9e19add3f9e6","size":1701,"noattachment":false,"key":"/current-module-paths/-/current-module-paths-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/current-module-paths/download/current-module-paths-1.1.1.tgz"},"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"directories":{},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/current-module-paths_1.1.1_1683029879630_0.8017714935868088"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-05-02T12:17:59.787Z","publish_time":1683029879787,"_source_registry_name":"default","_cnpm_publish_time":1683029879787},"1.1.0":{"name":"current-module-paths","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"1.1.0","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.mjs","require":"./dist/index.cjs"},"keywords":["__dirname","__filename","module","paths","modules","ESM","ECMAScript","import","commonjs","cjs","mjs"],"license":"MIT","engines":{"node":">=12.17"},"scripts":{"test":"test-runner test.?js"},"devDependencies":{"test-runner":"^0.9.7"},"gitHead":"7069ddc8f5b1e623b319abf6f2f51a066310a8e0","bugs":{"url":"https://github.com/75lb/current-module-paths/issues"},"homepage":"https://github.com/75lb/current-module-paths#readme","_id":"current-module-paths@1.1.0","_nodeVersion":"16.6.2","_npmVersion":"7.20.3","dist":{"shasum":"5d5bf214281d80aea264e642f028e672098238f6","size":1041,"noattachment":false,"key":"/current-module-paths/-/current-module-paths-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/current-module-paths/download/current-module-paths-1.1.0.tgz"},"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"directories":{},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/current-module-paths_1.1.0_1628853974676_0.3139277266088629"},"_hasShrinkwrap":false,"publish_time":1628853974801,"_cnpm_publish_time":1628853974801},"1.0.0":{"name":"current-module-paths","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"1.0.0","description":"Access to __filename and __dirname within ECMAScript modules","repository":{"type":"git","url":"git+https://github.com/75lb/current-module-paths.git"},"exports":"./index.mjs","keywords":["__dirname","__filename","module","paths","modules","ESM","ECMAScript","import","commonjs","cjs","mjs"],"license":"MIT","engines":{"node":">=14"},"scripts":{"test":"test-runner test.mjs"},"devDependencies":{"test-runner":"^0.9.5"},"gitHead":"7667729e98ee0e3f7645e8131604aa09c2e6058c","bugs":{"url":"https://github.com/75lb/current-module-paths/issues"},"homepage":"https://github.com/75lb/current-module-paths#readme","_id":"current-module-paths@1.0.0","_nodeVersion":"16.4.1","_npmVersion":"7.19.1","dist":{"shasum":"0ca6e2a11ed1f4e28d25d0f13de63c0aa0fad6da","size":968,"noattachment":false,"key":"/current-module-paths/-/current-module-paths-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/current-module-paths/download/current-module-paths-1.0.0.tgz"},"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"directories":{},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/current-module-paths_1.0.0_1625333765334_0.9391514720178156"},"_hasShrinkwrap":false,"publish_time":1625333765471,"_cnpm_publish_time":1625333765471},"0.1.0":{"name":"current-module-paths","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.1.0","description":"current-module-paths","repository":{"type":"git","url":"git+https://github.com/75lb/current-module-paths.git"},"main":"index.mjs","keywords":["__dirname","__filename","module","paths","modules","ESM","ECMAScript","import","commonjs","cjs","mjs"],"license":"MIT","engines":{"node":">=14"},"scripts":{"test":"test-runner test.mjs"},"gitHead":"65fe9aca186e14419f565a9ce9aa0e7616cda490","bugs":{"url":"https://github.com/75lb/current-module-paths/issues"},"homepage":"https://github.com/75lb/current-module-paths#readme","_id":"current-module-paths@0.1.0","_nodeVersion":"16.0.0","_npmVersion":"7.10.0","dist":{"shasum":"1c82ca05b0579496b1320c091bbed62f2e55481e","size":524,"noattachment":false,"key":"/current-module-paths/-/current-module-paths-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/current-module-paths/download/current-module-paths-0.1.0.tgz"},"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"directories":{},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/current-module-paths_0.1.0_1619344894384_0.8360366110436419"},"_hasShrinkwrap":false,"publish_time":1619344894487,"_cnpm_publish_time":1619344894487}},"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[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](https://github.com/feross/standard)\n\n# current-module-paths\n\nAccess to the CommonJS `__filename` and `__dirname` variables within ECMAScript modules.\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-24 Lloyd Brookes \\<75pound@gmail.com\\>.\n\nTested by [test-runner](https://github.com/test-runner-js/test-runner).\n","_attachments":{},"homepage":"https://github.com/75lb/current-module-paths#readme","bugs":{"url":"https://github.com/75lb/current-module-paths/issues"},"license":"MIT"}