fs-exists-in-path

1.0.0 • Public • Published

fs-exists-in-path

Async fs.exists() that walks the PATH environment variable.

Install

npm install fs-exists-in-path --save

Example usage

var existsInPath = require('fs-exists-in-path');
 
existsInPath('grunt', function(err, exists) {
    if (exists) {
        console.log('grunt-cli seems to be installed!');
    } else {
        console.log('No grunt-cli found! Install using: npm i grunt-cli -g');
    }
});

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i fs-exists-in-path

    Weekly Downloads

    0

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • branneman