is-path-inside
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2595
4
35
2