is-in-ssh
npmv1.0.0TypeScriptCheck if the process is running in an SSH session
Safe to adopt
Yes — is-in-ssh scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 301 days ago.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- BMaintenance: grade B, Good.
Last published 301 days ago.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 3.5 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 is-in-ssh to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Node.js
- node >=20
- Module format
- ESM only
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the is-in-ssh README.
import isInSsh from 'is-in-ssh';
if (isInSsh) {
console.log('Running in an SSH session');
}is-in-ssh vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| is-in-sshthis page | 0 | 1 | MIT | 10 months ago |
| is-wsl | 117.6M | 4 | MIT | 1 day ago |
| is-generator-fn | 0 | 1 | MIT | 1 day ago |
| is-docker | 0 | 2 | MIT | 1 day ago |
| is-inside-container | 0 | 2 | MIT | 1 day ago |
| has-flag | 166.9M | 1 | MIT | 1 day ago |
Dependencies
Declared by is-in-ssh v1.0.0. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (1)
Used by
Popular packages that depend on is-in-ssh.
Relationship graph
Dependencies (left) and dependents (right) of is-in-ssh.
Frequently installed together
Get the default browser
Utilities for working with Windows Subsystem for Linux (WSL)
TypeScript definitions for node
Check if the process is running inside a container (Docker/Podman)
Define a lazily evaluated property on an object
Release history
1 release in the last two years.
| Version | Published | Size | License |
|---|---|---|---|
| 1.0.0latest | 10 months ago | 3.5 KB | MIT |
Overview
is-in-ssh is an npm package that check if the process is running in an SSH session. It has 1 known dependents in the graph. The latest version is 1.0.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need check if the process is running in an SSH session and value a focused solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.
Pros
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
- Lean dependency tree (1 direct dependencies).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Funding
Frequently asked questions
Should I use is-in-ssh?
Yes — is-in-ssh scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 301 days ago.
How do I install is-in-ssh?
Run `npm install is-in-ssh` to add is-in-ssh to your npm project.
What license is is-in-ssh released under?
is-in-ssh is distributed under the MIT license.
How popular is is-in-ssh?
npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on is-in-ssh.
Is is-in-ssh still maintained?
The most recent release of is-in-ssh (v1.0.0) was published 10 months ago.
Does is-in-ssh run install scripts?
No. is-in-ssh does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.