Shebang File
Parse the shebang (if any) of a file.
Install
npm install shebang-file
Usage
const shebangFile = ; async { await ; //=> 'bash'};
API
shebangFile(filename)
filename
Type: string
The filename to parse the shebang from.
Migrating from v1
- If a shebang isn't found,
undefined
is now returned instead ofnull
. - Bluebird promises have been swapped out for native ones.
- The minimum required Node.js version is now 8.x.