Nocturnally Psychologizing Millipede

    shebang-command
    DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/shebang-command package

    1.2.0 • Public • Published

    shebang-command Build Status

    Get the command from a shebang

    Install

    $ npm install --save shebang-command
    

    Usage

    const shebangCommand = require('shebang-command');
     
    shebangCommand('#!/usr/bin/env node');
    //=> 'node'
     
    shebangCommand('#!/bin/bash');
    //=> 'bash'

    API

    shebangCommand(string)

    string

    Type: string

    String containing a shebang.

    License

    MIT © Kevin Martensson

    Install

    npm i shebang-command@1.2.0

    Version

    1.2.0

    License

    MIT

    Last publish

    Collaborators

    • kevva