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

is-path-inside

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-path-inside - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

license

9

package.json
{
"name": "is-path-inside",
"version": "1.0.0",
"version": "1.0.1",
"description": "Check if a path is inside another path",

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

"email": "sindresorhus@gmail.com",
"url": "http://sindresorhus.com"
"url": "sindresorhus.com"
},

@@ -17,3 +17,3 @@ "engines": {

"scripts": {
"test": "mocha"
"test": "xo && ava"
},

@@ -36,4 +36,5 @@ "files": [

"devDependencies": {
"mocha": "*"
"ava": "*",
"xo": "*"
}
}

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

```sh
```
$ npm install --save is-path-inside

@@ -19,6 +19,6 @@ ```

isPathInside('a/b', 'a/b/c');
isPathInside('a/b/c', 'a/b');
//=> true
isPathInside('x/y', 'a/b/c');
isPathInside('a/b/c', 'x/y');
//=> false

@@ -28,2 +28,5 @@

//=> false
isPathInside('/Users/sindresorhus/dev/unicorn', '/Users/sindresorhus');
//=> true
```

@@ -30,0 +33,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