Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on Apr 28, 2024 via pnpm

shebang-command 2.0.0

Get the command from a shebang
Package summary
Share
0
issues
1
license
2
MIT
Package created
4 Dec 2015
Version published
6 Sep 2019
Maintainers
1
Total deps
2
Direct deps
1
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
2 Packages, Including:
shebang-command@2.0.0
shebang-regex@3.0.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

1
All Dependencies CSV
β“˜ This is a list of shebang-command 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
shebang-regex3.0.01.47 kBMIT
prod

Visualizations

Frequently Asked Questions

What does shebang-command do?

The "shebang-command" is a potent tool that interprets and extracts the command from a shebang, an essential part of many scripting languages.

How do you use shebang-command?

To use the "shebang-command", first, install it in your project using npm with the following command:

$ npm install shebang-command

After that, you can import it into your JavaScript file and use it as follows:

const shebangCommand = require('shebang-command');

shebangCommand('#!/usr/bin/env node');
// Returns: 'node'

shebangCommand('#!/bin/bash');
// Returns: 'bash'

This package simply requires a string input containing a shebang, and it will output the corresponding command.

Where are the shebang-command docs?

The documentation for "shebang-command" is rather straightforward and it can be found right in the readme file on the package's GitHub repository at https://github.com/kevva/shebang-command. It provides all the necessary details for getting started, including the installation process and usage examples.