shebang-command

WebJar for shebang-command

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

shebang-command
Last Version

Last Version

2.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

shebang-command
WebJar for shebang-command
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/kevva/shebang-command

Download shebang-command

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/shebang-command/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>shebang-command</artifactId>
    <version>2.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/shebang-command/
implementation 'org.webjars.npm:shebang-command:2.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/shebang-command/
implementation ("org.webjars.npm:shebang-command:2.0.0")
'org.webjars.npm:shebang-command:jar:2.0.0'
<dependency org="org.webjars.npm" name="shebang-command" rev="2.0.0">
  <artifact name="shebang-command" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='shebang-command', version='2.0.0')
)
libraryDependencies += "org.webjars.npm" % "shebang-command" % "2.0.0"
[org.webjars.npm/shebang-command "2.0.0"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : shebang-regex jar [3.0.0,4)

Project Modules

There are no modules declared in this project.

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.


Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.

Versions

Version
2.0.0
1.2.0