8f9a0cbf2b1bd771a09ae49b369e690ec8bf3f2186de2b4ef03f51363d14b0cb0b7212979c0767175805c8e72cc165a087f337abd6b7cc5f634814378b1714 567 B

123456789101112131415161718192021222324252627282930313233343536373839
  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 --save 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.
  20. ## License
  21. MIT © [Kevin Martensson](http://github.com/kevva)