Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

is-path-in-cwd

2.0.0 • Public • Published

is-path-in-cwd Build Status

Check if a path is in the current working directory

Install

$ npm install is-path-in-cwd

Usage

const isPathInCwd = require('is-path-in-cwd');
 
isPathInCwd('unicorn');
//=> true
 
isPathInCwd('../rainbow');
//=> false
 
isPathInCwd('.');
//=> false

License

MIT © Sindre Sorhus

install

npm i is-path-in-cwd

Downloadsweekly downloads

3,806,949

version

2.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar