Find the root directory of a Node.js project or npm package
Why do you think that https://github.com/sindresorhus/write-json-file is a good alternative to pkg-dir
Find the root directory of a Node.js project or npm package
Why do you think that https://github.com/sindresorhus/write-json-file is a good alternative to pkg-dir