Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

find-up

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

find-up - npm Package Compare versions

Comparing version 6.2.0 to 6.3.0

7

index.js
import path from 'node:path';
import {fileURLToPath} from 'node:url';
import {locatePath, locatePathSync} from 'locate-path';
const toPath = urlOrPath => urlOrPath instanceof URL ? fileURLToPath(urlOrPath) : urlOrPath;
export const findUpStop = Symbol('findUpStop');
export async function findUpMultiple(name, options = {}) {
let directory = path.resolve(options.cwd || '');
let directory = path.resolve(toPath(options.cwd) || '');
const {root} = path.parse(directory);

@@ -51,3 +54,3 @@ const stopAt = path.resolve(directory, options.stopAt || root);

export function findUpMultipleSync(name, options = {}) {
let directory = path.resolve(options.cwd || '');
let directory = path.resolve(toPath(options.cwd) || '');
const {root} = path.parse(directory);

@@ -54,0 +57,0 @@ const stopAt = options.stopAt || root;

{
"name": "find-up",
"version": "6.2.0",
"version": "6.3.0",
"description": "Find a file or directory by walking up parent directories",

@@ -46,3 +46,3 @@ "license": "MIT",

"dependencies": {
"locate-path": "^7.0.0",
"locate-path": "^7.1.0",
"path-exists": "^5.0.0"

@@ -49,0 +49,0 @@ },

@@ -101,3 +101,3 @@ # find-up

Type: `string`\
Type: `URL | string`\
Default: `process.cwd()`

@@ -104,0 +104,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc