Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

is-path-member

natpen5ISC0.1.0

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

path, environment

readme

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.