is-global-exec
v0.1.3 global executable check
is-global-exec
Checks whether executable is global.
Installation
npm i is-global-exec -S
Usage
test/test
var isGlobal = require('is-global-exec')
console.log(isGlobal())
run script
$ node test/test
# -> false # 'test/test' is local executable
$ test/test
# false # 'test/test' is local executable
# if 'test/test' is install global, it will print 'true'
License
MIT