npm.io
0.1.0 • Published 10 years ago

is-path-member

Licence
ISC
Version
0.1.0
Deps
0
Vulns
0
Weekly
0

is-path-member

Platform-agnostic check of whether a given path is a member of the PATH environment variable.

USAGE

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/');

OPTIONS

If you pass in options, then colon is relevant.

Keywords