is-path-global

Check if a path is in PATH

Usage no npm install needed!

<script type="module">
  import isPathGlobal from 'https://cdn.skypack.dev/is-path-global';
</script>

README

is-path-global Build Status

Check if a path is in PATH

Install

$ npm install --save is-path-global

Usage

const isPathGlobal = require('is-path-global');

isPathGlobal('/bin/sh');
//=> true

isPathGlobal('/home/sirjohndoe');
//=> false

License

MIT © Kevin Mårtensson