is-path-in-cwd

Check if a path is in the current working directory

MIT 8 个版本
安装
npm install is-path-in-cwd
yarn add is-path-in-cwd
pnpm add is-path-in-cwd
bun add is-path-in-cwd
README

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.
版本列表
4.0.0 2021-05-03
3.0.0 2019-07-05
2.1.0 2019-04-20
2.0.0 2018-03-22
1.0.1 2018-03-22
1.0.0 2014-08-14
0.1.1 2014-06-20
0.1.0 2014-06-19