Socket
Socket
Sign inDemoInstall

locate-path

Package Overview
Dependencies
4
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.0 to 2.0.0

4

package.json
{
"name": "locate-path",
"version": "1.1.0",
"version": "2.0.0",
"description": "Get the first path that exists on disk of multiple paths",

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

"dependencies": {
"p-locate": "^1.0.0",
"p-locate": "^2.0.0",
"path-exists": "^3.0.0"

@@ -40,0 +40,0 @@ },

@@ -26,3 +26,3 @@ # locate-path [![Build Status](https://travis-ci.org/sindresorhus/locate-path.svg?branch=master)](https://travis-ci.org/sindresorhus/locate-path)

locatePath(files, {concurrency: 1}).then(foundPath => {
locatePath(files).then(foundPath => {
console.log(foundPath);

@@ -46,4 +46,2 @@ //=> 'rainbow'

Set `{concurrency: 1}` to preserve the search order.
#### options

@@ -61,2 +59,11 @@

##### preserveOrder
Type: `boolean`<br>
Default: `true`
Preserve `input` order when searching.
Disable this to improve performance if you don't care about the order.
##### cwd

@@ -63,0 +70,0 @@

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