0.1.4 • Published 6 years ago
sh-or-cmd v0.1.4
sh-or-cmd
Returns 'sh' in UNIX/Linux and 'cmd' in Windows.
Requirements
- Node.js ≥ 8.9.0
Usage
import shell from 'sh-or-cmd'
console.log(shell)It prints either 'sh' or 'cmd'
Returns 'sh' in UNIX/Linux and 'cmd' in Windows.
import shell from 'sh-or-cmd'
console.log(shell)It prints either 'sh' or 'cmd'