Socket
Socket
Sign inDemoInstall

pkg-dir

Package Overview
Dependencies
1
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.0.0 to 8.0.0

4

index.d.ts

@@ -1,2 +0,2 @@

export interface Options {
export type Options = {
/**

@@ -8,3 +8,3 @@ The directory to start searching from.

readonly cwd?: string;
}
};

@@ -11,0 +11,0 @@ /**

import path from 'node:path';
import {findUp, findUpSync} from 'find-up';
import {findUp, findUpSync} from 'find-up-simple';

@@ -4,0 +4,0 @@ export async function packageDirectory({cwd} = {}) {

{
"name": "pkg-dir",
"version": "7.0.0",
"version": "8.0.0",
"description": "Find the root directory of a Node.js project or npm package",

@@ -14,5 +14,8 @@ "license": "MIT",

"type": "module",
"exports": "./index.js",
"exports": {
"types": "./index.d.ts",
"default": "./index.js"
},
"engines": {
"node": ">=14.16"
"node": ">=18"
},

@@ -51,11 +54,10 @@ "scripts": {

"dependencies": {
"find-up": "^6.3.0"
"find-up-simple": "^1.0.0"
},
"devDependencies": {
"ava": "^4.3.1",
"tempy": "^3.0.0",
"tsd": "^0.22.0",
"typescript": "^4.7.4",
"xo": "^0.51.0"
"ava": "^5.3.1",
"tempy": "^3.1.0",
"tsd": "^0.29.0",
"xo": "^0.56.0"
}
}

@@ -58,13 +58,1 @@ # pkg-dir

- [find-up](https://github.com/sindresorhus/find-up) - Find a file by walking up parent directories
---
<div align="center">
<b>
<a href="https://tidelift.com/subscription/pkg/npm-pkg-dir?utm_source=npm-pkg-dir&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
</b>
<br>
<sub>
Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
</sub>
</div>
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc