node package manager
It’s your turn. Help us improve JavaScript. Take the 2017 JavaScript Ecosystem Survey »

is-path-cwd

is-path-cwd Build Status

Check if a path is CWD

Install

$ npm install --save is-path-cwd

Usage

var isPathCwd = require('is-path-cwd');
 
isPathCwd(process.cwd());
//=> true 
 
isPathCwd('unicorn');
//=> false 

License

MIT © Sindre Sorhus