This package has been deprecated

Author message:

No longer maintained

is-file-global

1.0.2 • Public • Published

is-file-global Build Status

Check if a file is available globally in PATH

Useful when you need to check if a file (script, executable, etc.) is callable globally.

Install

$ npm install --save is-file-global

Usage

var isFileGlobal = require('is-file-global');

isFileGlobal('where.exe', function(err, path) {
  if (err) {
    throw err;
  }

  console.log(path);
  //=> C:/Windows/system32/where.exe
});

API

isFileGlobal(filename, callback)

filename

Required
Type: string

Name of a script or executable to find e.g. where.exe. Also, you can use patterns to match files, see Glob.

callback

Required
Type: function

Arguments: error, string

Resulting string contains location of the file if found, undefined otherwise.

Support

This module was tested on Windows only.

License

MIT © Peter Sandor

Readme

Keywords

Package Sidebar

Install

npm i is-file-global

Weekly Downloads

0

Version

1.0.2

License

MIT

Last publish

Collaborators

  • petersandor