</>PackageGraphPackageGraph

shebang-command

npmv2.0.0

Get the command from a shebang

Not recommended for new projects

No — shebang-command should not be adopted for new projects. Last published 2560 days ago.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • FMaintenance: grade F, Failing.

    Last published 2560 days ago.

  • AWeight: grade A, Excellent.

    Pulls in 1 transitive package, about 5.7 KB installed.

  • BSupply chain: grade B, Good.

    This package has a single maintainer (bus factor of 1).

  • ALicense: grade A, Excellent.

    MIT — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding shebang-command to a project.

1
Direct dependencies

Runtime packages this one declares itself.

1
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

5.7 KB
Install size

Unpacked size of this package plus its entire runtime tree.

1
Tree depth

Longest resolved dependency chain below this package.

Licenses in the dependency tree

MIT

Every license you inherit by installing shebang-command, not just its own. Check this before a legal review, not after.

Compatibility

Node.js
node >=8
Module format
CommonJS only
TypeScript
No bundled types
Install scripts
None

Quick start

A usage example from the shebang-command README.

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

shebangCommand('#!/usr/bin/env node');
//=> 'node'

shebangCommand('#!/bin/bash');
//=> 'bash'

shebang-command vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
shebang-commandthis page01MIT7 years ago
meow36.7M1MIT1 day ago
cross-spawn09MIT1 day ago
commander451.1M11MIT1 day ago
yargs-parser178.8M2ISC1 day ago
open130.4M4MIT1 day ago

Dependencies

Declared by shebang-command v2.0.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (2)

ava ^2.3.0xo ^0.24.0

Used by

Popular packages that depend on shebang-command.

Relationship graph

Dependencies (left) and dependents (right) of shebang-command.

shebang-regexcross-spawnshebang-command
shebang-command dependencies dependents

Frequently installed together

Release history

No releases in the last two years, typically about 168 days apart.

Recent versions of shebang-command
VersionPublishedSizeLicense
2.0.0latest7 years ago2.5 KBMIT
1.2.010 years agoMIT
1.1.010 years agoMIT
1.0.010 years agoMIT

Overview

shebang-command is an npm package that get the command from a shebang. It has 1 known dependents in the graph. The latest version is 2.0.0, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need get the command from a shebang and value a focused solution.

When not to use it

Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.

Pros

  • Clear open-source license (MIT).
  • Lean dependency tree (3 direct dependencies).

Cons

  • No bundled TypeScript types (may require a separate @types package).

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Frequently asked questions

Should I use shebang-command?

No — shebang-command should not be adopted for new projects. Last published 2560 days ago.

How do I install shebang-command?

Run `npm install shebang-command` to add shebang-command to your npm project.

How many dependencies does shebang-command have?

shebang-command declares 3 direct dependencies and pulls in 1 packages in total once its runtime tree is resolved totalling about 5.7 KB on disk.

What license is shebang-command released under?

shebang-command is distributed under the MIT license.

How popular is shebang-command?

npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on shebang-command.

Is shebang-command still maintained?

The most recent release of shebang-command (v2.0.0) was published 7 years ago.

Does shebang-command run install scripts?

No. shebang-command does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.