|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
495 bytes
|
| Line | |
|---|
| 1 | # shebang-command [](https://travis-ci.org/kevva/shebang-command)
|
|---|
| 2 |
|
|---|
| 3 | > Get the command from a shebang
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 | ## Install
|
|---|
| 7 |
|
|---|
| 8 | ```
|
|---|
| 9 | $ npm install shebang-command
|
|---|
| 10 | ```
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 | ## Usage
|
|---|
| 14 |
|
|---|
| 15 | ```js
|
|---|
| 16 | const shebangCommand = require('shebang-command');
|
|---|
| 17 |
|
|---|
| 18 | shebangCommand('#!/usr/bin/env node');
|
|---|
| 19 | //=> 'node'
|
|---|
| 20 |
|
|---|
| 21 | shebangCommand('#!/bin/bash');
|
|---|
| 22 | //=> 'bash'
|
|---|
| 23 | ```
|
|---|
| 24 |
|
|---|
| 25 |
|
|---|
| 26 | ## API
|
|---|
| 27 |
|
|---|
| 28 | ### shebangCommand(string)
|
|---|
| 29 |
|
|---|
| 30 | #### string
|
|---|
| 31 |
|
|---|
| 32 | Type: `string`
|
|---|
| 33 |
|
|---|
| 34 | String containing a shebang.
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.