sh-or-cmd
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

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'

License

MIT © Hoàng Văn Khải

Package Sidebar

Install

npm i sh-or-cmd

Weekly Downloads

1

Version

0.1.4

License

MIT

Unpacked Size

2.46 kB

Total Files

4

Last publish

Collaborators

  • khai96_