File manager - Edit - /opt/alt/alt-nodejs11/root/usr/lib/node_modules/npm/node_modules.bundled/is-path-inside/readme.md
Back
# is-path-inside [](https://travis-ci.org/sindresorhus/is-path-inside) > Check if a path is inside another path ## Install ``` $ npm install --save is-path-inside ``` ## Usage ```js 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](http://sindresorhus.com)
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.06 |
proxy
|
phpinfo
|
Settings