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.

    Install

    npm i is-path-in-cwd

    DownloadsWeekly Downloads

    11,285,932

    Version

    4.0.0

    License

    MIT

    Unpacked Size

    3.15 kB

    Total Files

    5

    Last publish

    Collaborators

    • sindresorhus