NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #392 most downloaded on npm
Find the root directory of a Node.js project or npm package
Last release 1 years ago
05 Jun 2025
Ships fairly regularly
a new release about every 13 months
Most releases are documented
notes for 8 of 11 stable releases
1 version withdrawn
withdrawn after publishing
11 years old
12 releases · first in 2015
Nothing published for this version
Breaking Require Node.js 18 9337d45 v7.0.0...v8.0.0
Fix TypeScript return type dea1a16
One column per quarter.
Fix regression in v6 ( #15 ) 6570506
Require Node.js 12.20 ( #14 ) 198c9fe aeafb93
cwd argument is now part of an options-object.-const pkgDir = require('pkg-dir');
+import {packageDirectory} from 'pkg-dir';
-await pkgDir('/Users/unicorn/foo');
+await packageDirectory({cwd: '/Users/unicorn/foo'});Require Node.js 10 ( #9 ) d3919a8
Update find-up dependency ( #7 ) aba58d7
Refactor TypeScript definition to CommonJS compatible export ( #5 ) 88b6650
Require Node.js 8 ( #4 ) 24d765b
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →