Platform-agnostic check of whether a given path is a member of the PATH environment variable.
var isPathMember = require('is-path-member');
// async usage
isPathMember('/foo/bar/baz/', function(err, retVal) {
// err is non-null if an error occurred
// retVal is a boolean
});
// sync usage
var retVal = isPathMember.sync('/foo/bar/baz/');
If you pass in options, then colon
is relevant.