layui-js/node_modules/is-path-inside
2017-08-21 08:50:25 +08:00
..
index.js clear 2017-08-21 08:50:25 +08:00
package.json clear 2017-08-21 08:50:25 +08:00
readme.md clear 2017-08-21 08:50:25 +08:00

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', 'a/b/c');
//=> true

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

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

License

MIT © Sindre Sorhus