1.1.1 • Published 12 months ago

current-module-paths v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

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-23 Lloyd Brookes \75pound@gmail.com\.

Tested by test-runner.