is-path-in-cwd
TypeScript icon, indicating that this package has built-in type declarations

4.0.0 • Public • Published

is-path-in-cwd

Check if a path is in the current working directory

Install

$ npm install is-path-in-cwd

Usage

import isPathInCwd from 'is-path-in-cwd';

isPathInCwd('unicorn');
//=> true

isPathInCwd('../rainbow');
//=> false

isPathInCwd('.');
//=> false

Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 4.0.0
    156
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 4.0.0
    156
  • 3.0.0
    157
  • 2.1.0
    3,953,674
  • 2.0.0
    5,131
  • 1.0.1
    1,816,747
  • 1.0.0
    105,676
  • 0.1.1
    160
  • 0.1.0
    3

Package Sidebar

Install

npm i is-path-in-cwd

Weekly Downloads

5,881,704

Version

4.0.0

License

MIT

Unpacked Size

3.15 kB

Total Files

5

Last publish

Collaborators

  • sindresorhus