One common way of using this package is as follows. Maybe mention that in the readme?
import {packageDirectorySync} from 'pkg-dir';
console.log(packageDirectorySync({cwd: import.meta.url}));
{cwd: new URL(import.meta.url)}
.process.cwd()
for cwd
can produce incorrect results for modules.Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too