current-module-paths
Access to __filename and __dirname within ECMAScript modules.
import currentModulePaths from 'current-module-paths'
const { __filename, __dirname } = currentModulePaths(import.meta.url)
Tested by test-runner.
| Name |
Last commit
603277ba
-
README変更
|
History
|
Last Update |
|---|---|---|
| .. | ||
| dist | Loading commit data... | |
| README.md | Loading commit data... | |
| index.mjs | Loading commit data... | |
| package.json | Loading commit data... |
Access to __filename and __dirname within ECMAScript modules.
import currentModulePaths from 'current-module-paths'
const { __filename, __dirname } = currentModulePaths(import.meta.url)
Tested by test-runner.