benji.monster/node_modules/is-path-inside
ry 69c5b90d6a upload site 2020-01-03 21:48:09 +01:00
..
index.js upload site 2020-01-03 21:48:09 +01:00
license upload site 2020-01-03 21:48:09 +01:00
package.json upload site 2020-01-03 21:48:09 +01:00
readme.md upload site 2020-01-03 21:48:09 +01:00

readme.md

is-path-inside Build Status

Check if a path is inside another path

Install

$ npm install --save is-path-inside

Usage

var isPathInside = require('is-path-inside');

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

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

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

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

License

MIT © Sindre Sorhus