sshpk
npmv1.18.0A library for finding and using SSH public keys
Adopt with care
sshpk is usable, with caveats. Last published 1007 days ago.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- DMaintenance: grade D, Poor — a real concern.
Last published 1007 days ago.
- AWeight: grade A, Excellent.
Pulls in 2 transitive packages, about 267 KB installed.
- ASupply chain: grade A, Excellent.
No install scripts, 8 maintainers, and a contained dependency surface.
- 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 sshpk 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.
Licenses in the dependency tree
Every license you inherit by installing sshpk, not just its own. Check this before a legal review, not after.
Compatibility
- Node.js
- node >=0.10.0
- Module format
- CommonJS only
- TypeScript
- No bundled types
- Install scripts
- None
Quick start
A usage example from the sshpk README.
var sshpk = require('sshpk');
var fs = require('fs');
/* Read in an OpenSSH-format public key */
var keyPub = fs.readFileSync('id_rsa.pub');
var key = sshpk.parseKey(keyPub, 'ssh');
/* Get metadata about the key */
console.log('type => %s', key.type);
console.log('size => %d bits', key.size);
console.log('comment => %s', key.comment);
/* Compute key fingerprints, in new OpenSSH (>6.7) format, and old MD5 */Dependencies
Declared by sshpk v1.18.0. Runtime dependencies are installed with the package; dev dependencies are not.
Runtime (9)
Dev (4)
Used by
Popular packages that depend on sshpk.
Relationship graph
Dependencies (left) and dependents (right) of sshpk.
Frequently installed together
Release history
No releases in the last two years, typically about 47 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 1.18.0latest | 2 years ago | 225 KB | MIT |
| 1.17.0 | 4 years ago | 225 KB | MIT |
| 1.16.1 | 7 years ago | 220 KB | MIT |
| 1.16.0 | 7 years ago | 220 KB | MIT |
| 1.15.2 | 7 years ago | 209 KB | MIT |
| 1.15.1 | 7 years ago | 209 KB | MIT |
| 1.15.0 | 7 years ago | 209 KB | MIT |
| 1.14.2 | 8 years ago | 204 KB | MIT |
| 1.14.1 | 8 years ago | 203 KB | MIT |
| 1.13.2 | 8 years ago | 203 KB | MIT |
| 1.13.1 | 9 years ago | — | MIT |
| 1.13.0 | 9 years ago | — | MIT |
| 1.11.0 | 9 years ago | — | MIT |
| 1.10.2 | 9 years ago | — | MIT |
| 1.10.1 | 9 years ago | — | MIT |
Overview
sshpk is an npm package that a library for finding and using SSH public keys. It has 1 known dependents in the graph. The latest version is 1.18.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need a library for finding and using SSH public keys 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).
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Frequently asked questions
Should I use sshpk?
sshpk is usable, with caveats. Last published 1007 days ago.
How do I install sshpk?
Run `npm install sshpk` to add sshpk to your npm project.
How many dependencies does sshpk have?
sshpk declares 13 direct dependencies and pulls in 2 packages in total once its runtime tree is resolved totalling about 267 KB on disk.
What license is sshpk released under?
sshpk is distributed under the MIT license.
How popular is sshpk?
npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on sshpk.
Is sshpk still maintained?
The most recent release of sshpk (v1.18.0) was published 2 years ago.
Does sshpk run install scripts?
No. sshpk does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.