You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

пре 3 година
12345678910111213141516171819202122232425262728293031
  1. # is-path-in-cwd [![Build Status](https://travis-ci.org/sindresorhus/is-path-in-cwd.svg?branch=master)](https://travis-ci.org/sindresorhus/is-path-in-cwd)
  2. > Check if a path is in the [current working directory](http://en.wikipedia.org/wiki/Working_directory)
  3. ## Install
  4. ```sh
  5. $ npm install --save is-path-in-cwd
  6. ```
  7. ## Usage
  8. ```js
  9. var isPathInCwd = require('is-path-in-cwd');
  10. isPathInCwd('unicorn');
  11. //=> true
  12. isPathInCwd('../rainbow');
  13. //=> false
  14. isPathInCwd('.');
  15. //=> false
  16. ```
  17. ## License
  18. MIT © [Sindre Sorhus](http://sindresorhus.com)