0ee75ae032ff9631ffb144bfc6f5a11c329da130ee4b3ce7191bb57d43399aa402086b83f7af579d792cb77fdd4a62b7ed788e0e382bf25b48220bbd3bc897 591 B

12345678910111213141516171819202122232425262728293031323334
  1. # is-path-inside [![Build Status](https://travis-ci.org/sindresorhus/is-path-inside.svg?branch=master)](https://travis-ci.org/sindresorhus/is-path-inside)
  2. > Check if a path is inside another path
  3. ## Install
  4. ```
  5. $ npm install is-path-inside
  6. ```
  7. ## Usage
  8. ```js
  9. const isPathInside = require('is-path-inside');
  10. isPathInside('a/b/c', 'a/b');
  11. //=> true
  12. isPathInside('a/b/c', 'x/y');
  13. //=> false
  14. isPathInside('a/b/c', 'a/b/c');
  15. //=> false
  16. isPathInside('/Users/sindresorhus/dev/unicorn', '/Users/sindresorhus');
  17. //=> true
  18. ```
  19. ## License
  20. MIT © [Sindre Sorhus](https://sindresorhus.com)