Skip to content
Snippets Groups Projects
Select Git revision
  • Hayat2
  • main default
  • branch_aichatou
  • Hayat
4 results

shebang-command

  • Open with
  • Download source code
  • Download directory
  • Your workspaces

      A workspace is a virtual sandbox environment for your code in GitLab.

      No agents available to create workspaces. Please consult Workspaces documentation for troubleshooting.

  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    Name Last commit Last update
    ..
    index.js
    license
    package.json
    readme.md

    shebang-command Build Status

    Get the command from a shebang

    Install

    $ npm install 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.