is-path-member

0.1.0 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i is-path-member

Weekly Downloads

2

Version

0.1.0

License

ISC

Last publish

Collaborators

  • natpen