UNPKG

is-path-in-cwd

Version:

Check if a path is in the current working directory

6 lines (4 loc) 133 B
import isPathInside from 'is-path-inside'; export default function isPathInCwd(path) { return isPathInside(path, process.cwd()); }