{"_id":"current-module-paths","_rev":"7-4769ca349ba1a7dbc217f5592ed3a180","name":"current-module-paths","dist-tags":{"latest":"1.1.3"},"versions":{"0.1.0":{"name":"current-module-paths","version":"0.1.0","keywords":["__dirname","__filename","module","paths","modules","ESM","ECMAScript","import","commonjs","cjs","mjs"],"author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"license":"MIT","_id":"current-module-paths@0.1.0","maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"homepage":"https://github.com/75lb/current-module-paths#readme","bugs":{"url":"https://github.com/75lb/current-module-paths/issues"},"dist":{"shasum":"1c82ca05b0579496b1320c091bbed62f2e55481e","tarball":"https://registry.npmjs.org/current-module-paths/-/current-module-paths-0.1.0.tgz","fileCount":2,"integrity":"sha512-J35DSzvtHW2U5JObz70gohgXWxTBz3tD0RtgJC0yEJPFQIhsMPjd/V6IeMp2b1UyIiiq/H4QB57JtDr1NEZFow==","signatures":[{"sig":"MEYCIQDtQiv/KNHmEaUWqiukIPtTUZaEvjyjuPrb32HGLp5lGgIhAOuQscP1BAW+AROD6JRidUWprOytYP22G+sfl8eYx0bU","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":828,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJghT3+CRA9TVsSAnZWagAAZkEQAJXxOsIxOg8PE/vh0hE8\nkvpVOu6ac52+qbJHZT1u7fFKsA9r+NkNo7lkwjbEYUHNMDnac/ThO5UV22xL\nh+m8r5Q6hgffgYnT0KOMbRE2XK+xT1hzXCW6s7cT/1f8JuQMuneyOJ7oNpKa\n03G25veu7yQ7dTEKLa+qtiCRswr6DmFR7UNrp0JDCRtVcTIUS9bVCxqDbxBa\nY20gtHKQLmilYYD0LfQdUqbtghtjmeNa880jjbcjuRC2gkVmogJpWymdAXxD\ntrebjJh29k62i78Wa4RqZwiR05pDaJZJCdb/lKBGq1qbx00327pP+iLOpVb1\n2ayDh17xSdM5J96kVImSvA7M5NpoEryTKTPgOT5E/AtX+zC+BaTvqvrb2JMg\nFzAJrnKkXuK1T5TN5L4U1ipQcT5WDR8lWNSWOotxBH1/D+zoT/H1QsYdT14U\nuUaHDKihir44uFTkS1sMZ5WYz+/ZWt2C5mjQnVY8jaYmdguayelbvUEjTI66\nns7bJ7r/4w36KG2+a7PywE7+cpB7mBiwjByidhC2rJF6LO/EaYQmbVcXN18L\n8ep8t8X3jRJwN5BS9Q5dx8LI66IGZom3JzVgvLe1J22xYkJVnhrqkeIqWECL\nr1IM0BrxdDwXa+h3IumHPFG6Ds+RAEmBt4j98YI2YVIOsGSoZZSrLP4751uw\nrdK9\r\n=+eww\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.mjs","engines":{"node":">=14"},"gitHead":"65fe9aca186e14419f565a9ce9aa0e7616cda490","scripts":{"test":"test-runner test.mjs"},"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"repository":{"url":"git+https://github.com/75lb/current-module-paths.git","type":"git"},"_npmVersion":"7.10.0","description":"current-module-paths","directories":{},"_nodeVersion":"16.0.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/current-module-paths_0.1.0_1619344894384_0.8360366110436419","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"current-module-paths","version":"1.0.0","keywords":["__dirname","__filename","module","paths","modules","ESM","ECMAScript","import","commonjs","cjs","mjs"],"author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"license":"MIT","_id":"current-module-paths@1.0.0","maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"homepage":"https://github.com/75lb/current-module-paths#readme","bugs":{"url":"https://github.com/75lb/current-module-paths/issues"},"dist":{"shasum":"0ca6e2a11ed1f4e28d25d0f13de63c0aa0fad6da","tarball":"https://registry.npmjs.org/current-module-paths/-/current-module-paths-1.0.0.tgz","fileCount":3,"integrity":"sha512-pSaP6R1extujDm/VdVty4aPaZiAVXGfHi4YpRQwjzZTLlt4A2501Dj+i5ZK/nTNozHyD7pvlVyL7J5zJqVO9qQ==","signatures":[{"sig":"MEUCIQCWvXMVeiamNAymj00bgWtv4x0HavwBEdwNF8vFdVJ10QIgT5rJrlS7fBLjtCMFhf+AYtdSChDAVZmNVXYKtJFAlO0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2163,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg4KAFCRA9TVsSAnZWagAAlLYQAIi0JROjjytU3pxymKQn\noGVvkWnYxXO0AhmJ3+GrQw2Mo/jCuUsahERcYzLGayE3vSnSlyL7PU4awH+U\nMPlXp0KDY6lxYQM8X8jRA0lmy9vSrfIV7+vJIgrgDQ8kmHtEgZ8+tY1Osr48\nwbFEtz/eCxKbFS9c92Tqz2OFg1udzvJxVz1HpUpfZ1KJ/gIA4XvppFkoJvc1\n96vGDARKnL/nIzrOrrT3fZZzP462c90dCuHNEtt6Gv3Z3faYM0ypq/zsjIBl\nI5dKWmD8QiReB7mfDWsqngNOnh8tloJzvGL+ytaucbuZk4q4L31zUvnERvRE\n64VAh2ZNyeHEtULm8NgJtloj4I/4WJM4LSBQATPL378y0rTBriGfcrjBX0Pn\nwwScgqmvfqOz5JaO/GpoF+T0oWDo6C3z3SwBbffm8Rm9Ag7S6w3mmWdxbSe2\n5VgTcsvdTDoD7G41FnJKLjAHe/HJfojcxxoK1MoPFAhsdN29fQwjRQtnqd6J\nwUJmcCfvU3IfFIwaJwI5l9jaOA3ay/bUSFAoYpJ8cCDzvSgwHSkwoATQ5WV+\nNSMSjXt0kswp4jFtsmzFlNwUdzcX3Ah621Ec/VGI3EfigLqNbueKgTNzjbav\nbfjKY8JZWbbT5n/dd8hDA3xwhC0G4ZUM5oWUXp6Vyl69oFDRGy4syXU3+k/X\nCrvP\r\n=j8dn\r\n-----END PGP SIGNATURE-----\r\n"},"engines":{"node":">=14"},"exports":"./index.mjs","gitHead":"7667729e98ee0e3f7645e8131604aa09c2e6058c","scripts":{"test":"test-runner test.mjs"},"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"repository":{"url":"git+https://github.com/75lb/current-module-paths.git","type":"git"},"_npmVersion":"7.19.1","description":"Access to __filename and __dirname within ECMAScript modules","directories":{},"_nodeVersion":"16.4.1","_hasShrinkwrap":false,"devDependencies":{"test-runner":"^0.9.5"},"_npmOperationalInternal":{"tmp":"tmp/current-module-paths_1.0.0_1625333765334_0.9391514720178156","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"current-module-paths","version":"1.1.0","keywords":["__dirname","__filename","module","paths","modules","ESM","ECMAScript","import","commonjs","cjs","mjs"],"author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"license":"MIT","_id":"current-module-paths@1.1.0","maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"homepage":"https://github.com/75lb/current-module-paths#readme","bugs":{"url":"https://github.com/75lb/current-module-paths/issues"},"dist":{"shasum":"5d5bf214281d80aea264e642f028e672098238f6","tarball":"https://registry.npmjs.org/current-module-paths/-/current-module-paths-1.1.0.tgz","fileCount":4,"integrity":"sha512-HGhLUszcgprjKmzvQoCQda8iEWsQn3sWVzPdttyJVR5cjfVDYcoyozQA5D1YXgab9v84SPMpSuD+YrPX6i1IMQ==","signatures":[{"sig":"MEYCIQCPhV9JQm5NLxH538Sv4MyaNWy+/z71uhSM9uecwWCrCwIhAIEU3MW+QdyLHUunX2IqAjgZbThzfsmmyVncQfZETKv3","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2531,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhFlbWCRA9TVsSAnZWagAAIFIQAJm4z32NZsu2UfXyEunQ\nOaiPuBbOzbNTBJX53j72WaQtR95W1p9b/kUpdBegnd3OA+/UG8U17ut4aTr2\noqeuNsGTlseF3VGd3b/jMxrV+YlDzgUy68Mi2CLgd2p0JAHAj8ZOWS3IAKFg\nnqZPZ5belr9xCZKFzt8bpwtEO6BC69TFcZIvWvTqqSZRvzm9d/MoslWwgRAa\nLe9xDoB3wdBixPAJDYJNRlR+JnQUX4wE72PKJSaGVKDXhAxevO3Dm9dCOXgH\ncx3Ae4CzrdqtSLETEimabv0HP0VO06NYq6aQU9ivpFAJLqpmMC9X2Kbx4/eq\nqNRbqYSfQ9l/aRrBTXkaPSHovC7auyfElla+KJYIlmbI7JoQ9LpIuTTo7na9\nTEqc5dT19yDWrx5EbHwLO3+GO3JjzpRfCF3iPcxHL8zlB0QaAGfmfRL2yZEN\nTfrZBzuU9cZR4bKPBlFtJ0Yuv0bZg3Ve/Zr2tTe2odWcVWr6YBwGGAFWaslw\n73sDmMocX/NtmUV7Pdw0IkwxJo0lX3wiKA5U/hoseORb0WDZ2jssx2eknCbb\n+Xhm0mfsLxlQsVIWLIMyNu7YtMSXxPVBVXi0J7owHEndKtF9zZJTpZ6SBTa+\nVFeMuLzle6Iylgx9hwudMqPdmzF2wZweBjo8Zwfgoz2FM+QHt+pWYb0ZefZR\nZu6d\r\n=fMLN\r\n-----END PGP SIGNATURE-----\r\n"},"engines":{"node":">=12.17"},"exports":{"import":"./index.mjs","require":"./dist/index.cjs"},"gitHead":"7069ddc8f5b1e623b319abf6f2f51a066310a8e0","scripts":{"test":"test-runner test.?js"},"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"repository":{"url":"git+https://github.com/75lb/current-module-paths.git","type":"git"},"_npmVersion":"7.20.3","description":"Access to __filename and __dirname within ECMAScript modules","directories":{},"_nodeVersion":"16.6.2","_hasShrinkwrap":false,"devDependencies":{"test-runner":"^0.9.7"},"_npmOperationalInternal":{"tmp":"tmp/current-module-paths_1.1.0_1628853974676_0.3139277266088629","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"current-module-paths","version":"1.1.1","keywords":["__dirname","__filename","module","paths","modules","ESM","ECMAScript","import","commonjs","cjs","mjs"],"author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"license":"MIT","_id":"current-module-paths@1.1.1","maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"homepage":"https://github.com/75lb/current-module-paths#readme","bugs":{"url":"https://github.com/75lb/current-module-paths/issues"},"dist":{"shasum":"f0ee3298cd1a6839503b46796aac9e19add3f9e6","tarball":"https://registry.npmjs.org/current-module-paths/-/current-module-paths-1.1.1.tgz","fileCount":5,"integrity":"sha512-8Ga5T8oMXBaSsHq9Gj+bddX7kHSaJKsl2vaAd3ep51eQLkr4W18eFEmEZM5bLo1zrz8tt3jE1U8QK9QGhaLR4g==","signatures":[{"sig":"MEYCIQDtRw1ErvXQfEmoBLgD4fSCo9IxPICQtrQxVDMT9xDBYgIhAN/ukoE6+w4R0AYfVxqoU2WTP+E5Nxn7omoab2ZbPGtd","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3661},"type":"module","engines":{"node":">=12.17"},"exports":{"import":"./index.js","require":"./dist/index.cjs"},"gitHead":"54224debde64ce780bbe71f1ecd74fdd0498ae0b","scripts":{"test":"test-runner test/test.?js"},"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"repository":{"url":"git+https://github.com/75lb/current-module-paths.git","type":"git"},"_npmVersion":"9.6.5","description":"Access to __filename and __dirname within ECMAScript modules","directories":{},"_nodeVersion":"20.0.0","_hasShrinkwrap":false,"devDependencies":{"test-runner":"^0.10.1"},"_npmOperationalInternal":{"tmp":"tmp/current-module-paths_1.1.1_1683029879630_0.8017714935868088","host":"s3://npm-registry-packages"}},"1.1.2":{"name":"current-module-paths","version":"1.1.2","keywords":["__dirname","__filename","module","paths","modules","ESM","ECMAScript","import","commonjs","cjs","mjs"],"author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"license":"MIT","_id":"current-module-paths@1.1.2","maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"homepage":"https://github.com/75lb/current-module-paths#readme","bugs":{"url":"https://github.com/75lb/current-module-paths/issues"},"dist":{"shasum":"13a2d821b2f864c3adead261b7954b068510c32f","tarball":"https://registry.npmjs.org/current-module-paths/-/current-module-paths-1.1.2.tgz","fileCount":5,"integrity":"sha512-H4s4arcLx/ugbu1XkkgSvcUZax0L6tXUqnppGniQb8l5VjUKGHoayXE5RiriiPhYDd+kjZnaok1Uig13PKtKYQ==","signatures":[{"sig":"MEQCIDWXJ6L7xWxCLtFcvUsjfWPEA4q8Re7NME+Sjvo2pndyAiB6liq+PK7iTj6oQSItfUTkf77pIlcIpghLWJ05JmG1TQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3773},"type":"module","engines":{"node":">=12.17"},"exports":{"import":"./index.js","require":"./dist/index.cjs"},"gitHead":"b3c8e0af92189130e13f3a665ae21dbfd1c702c3","scripts":{"dist":"75lb-nature cjs-build index.js","test":"npm run dist && npm run test:ci","test:ci":"75lb-nature test test/test.mjs test/test.cjs"},"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"repository":{"url":"git+https://github.com/75lb/current-module-paths.git","type":"git"},"_npmVersion":"10.8.2","description":"Access to __filename and __dirname within ECMAScript modules","directories":{},"_nodeVersion":"22.7.0","_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/current-module-paths_1.1.2_1724531950089_0.6644219087890642","host":"s3://npm-registry-packages"}},"1.1.3":{"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":"https://registry.npmjs.org/current-module-paths/-/current-module-paths-1.1.3.tgz","fileCount":5,"unpackedSize":3844,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIBec08a+aAt1GsXVAcOPDHrN5lVDHM/yM+QXJOCPaaHAAiB2xmIqaaSfEsBpWVEZSNnw84zYY5StHqcyEUzIdc3DZw=="}]},"_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}},"time":{"created":"2021-04-25T10:01:34.384Z","modified":"2025-11-09T16:50:41.326Z","0.1.0":"2021-04-25T10:01:34.487Z","1.0.0":"2021-07-03T17:36:05.471Z","1.1.0":"2021-08-13T11:26:14.801Z","1.1.1":"2023-05-02T12:17:59.787Z","1.1.2":"2024-08-24T20:39:10.261Z","1.1.3":"2025-11-09T16:50:41.131Z"},"bugs":{"url":"https://github.com/75lb/current-module-paths/issues"},"author":{"name":"Lloyd Brookes","email":"opensource@75lb.com"},"license":"MIT","homepage":"https://github.com/75lb/current-module-paths#readme","keywords":["__dirname","__filename","module","paths","modules","ESM","ECMAScript","import","commonjs","cjs","mjs"],"repository":{"type":"git","url":"git+https://github.com/75lb/current-module-paths.git"},"description":"Access to __filename and __dirname within ECMAScript modules","maintainers":[{"name":"75lb","email":"opensource@75lb.com"}],"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","readmeFilename":"README.md"}