Newton's Programmatic Measurements
    Wondering what’s next for npm?Check out our public roadmap! »

    is-path-in-cwd
    TypeScript icon, indicating that this package has built-in type declarations

    3.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

    Install

    npm i is-path-in-cwd

    DownloadsWeekly Downloads

    11,139,423

    Version

    3.0.0

    License

    MIT

    Unpacked Size

    2.74 kB

    Total Files

    5

    Last publish

    Collaborators

    • avatar