</>PackageGraphPackageGraph

sshpk

npmv1.18.0

A 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.

9
Direct dependencies

Runtime packages this one declares itself.

2
Total installed

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

267 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 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 */
Example truncated — see the full README.

Dependencies

Declared by sshpk v1.18.0. Runtime dependencies are installed with the package; dev dependencies are not.

Runtime (9)

asn1 ~0.2.3assert-plus ^1.0.0bcrypt-pbkdf ^1.0.0dashdash ^1.12.0ecc-jsbn ~0.1.1getpass ^0.1.1jsbn ~0.1.0safer-buffer ^2.0.2tweetnacl ~0.14.0

Dev (4)

benchmark ^1.0.0sinon ^1.17.2tape ^3.5.0temp ^0.8.2

Used by

Popular packages that depend on sshpk.

Relationship graph

Dependencies (left) and dependents (right) of sshpk.

safer-bufferassert-plushttp-signaturesshpk
sshpk dependencies dependents

Frequently installed together

Release history

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

Recent versions of sshpk
VersionPublishedSizeLicense
1.18.0latest2 years ago225 KBMIT
1.17.04 years ago225 KBMIT
1.16.17 years ago220 KBMIT
1.16.07 years ago220 KBMIT
1.15.27 years ago209 KBMIT
1.15.17 years ago209 KBMIT
1.15.07 years ago209 KBMIT
1.14.28 years ago204 KBMIT
1.14.18 years ago203 KBMIT
1.13.28 years ago203 KBMIT
1.13.19 years agoMIT
1.13.09 years agoMIT
1.11.09 years agoMIT
1.10.29 years agoMIT
1.10.19 years agoMIT

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.

Maintainers

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.