to-executable-name
Append .exe
to a given string if the program is running on a Windows environment
const toExecutableName = ; // On Windows; //=> 'node.exe' // Otherwise; //=> 'node'
Installation
npm install to-executable-name
API
const toExecutableName = ;
toExecutableName(binName [, option])
binName: string
option: Object
Return: String
options.win32Ext
Type: string
Default: .exe
A file extension that will be appended to the string on Windows.
// On Windows ; //=> 'foo.exe'; //=> 'foo.bat'
License
ISC License © 2017 Shinnosuke Watanabe