$ cnpm install is-path-global
Check if a path is in PATH
$ npm install --save is-path-global
const isPathGlobal = require('is-path-global');
isPathGlobal('/bin/sh');
//=> true
isPathGlobal('/home/sirjohndoe');
//=> false
MIT © Kevin Mårtensson
Copyright 2013 - present © cnpmjs.org | Home |