What is pkg-dir?
"Find the root directory of a Node.js project or npm package"
pkg-dir is used to facilitate high-performance Node.js workflows. It provides a slim footprint of 4.8 KB on disk.
Installation Guide
# Install via NPM
npm install pkg-dir
# Install via Yarn
yarn add pkg-dir