Name Last Update
..
dist Loading commit data...
README.md Loading commit data...
index.mjs Loading commit data...
package.json Loading commit data...

view on npm npm module downloads Gihub repo dependents Gihub package dependents Node.js CI js-standard-style

current-module-paths

Access to __filename and __dirname within ECMAScript modules.

import currentModulePaths from 'current-module-paths'

const { __filename, __dirname } = currentModulePaths(import.meta.url)

© 2021 Lloyd Brookes <75pound@gmail.com>.

Tested by test-runner.