UNPKG

sh-or-cmd

Version:

Returns 'sh' or 'cmd' based on platform

21 lines (12 loc) 313 B
# sh-or-cmd Returns `'sh'` in UNIX/Linux and `'cmd'` in Windows. ## Requirements * Node.js ≥ 8.9.0 ## Usage ```javascript import shell from 'sh-or-cmd' console.log(shell) ``` It prints either `'sh'` or `'cmd'` ## License [MIT](https://git.io/vhaEz) © [Hoàng Văn Khải](https://github.com/KSXGitHub)