8273a0c186aab33aa4a13f01f86060d390fd4df086579f671b783a91adb95e72dbc5aa91987a02747fd00e346bdcf5089a70976bc72f5904fc27d6c5559b4e 495 B

12345678910111213141516171819202122232425262728293031323334
  1. # shebang-command [![Build Status](https://travis-ci.org/kevva/shebang-command.svg?branch=master)](https://travis-ci.org/kevva/shebang-command)
  2. > Get the command from a shebang
  3. ## Install
  4. ```
  5. $ npm install shebang-command
  6. ```
  7. ## Usage
  8. ```js
  9. const shebangCommand = require('shebang-command');
  10. shebangCommand('#!/usr/bin/env node');
  11. //=> 'node'
  12. shebangCommand('#!/bin/bash');
  13. //=> 'bash'
  14. ```
  15. ## API
  16. ### shebangCommand(string)
  17. #### string
  18. Type: `string`
  19. String containing a shebang.