npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

pinentry

v0.0.1

Published

Run GnuPG pinentry dialogs

Downloads

3

Readme

node-pinentry

A library for running a GnuPG pinentry process and communicating it with the Assuan client protocol.

API

Pinentry

A class for running pinentry programs.

Example:

var Pinentry = require("pinentry");
new Pinentry().connect().getPin({desc: "gimme pin"}, function (err, pin) {
	if (err) console.log("error");
	else console.log("got pin", pin);
	this.close();
});

For more detailed usage, see example.js.

new Pinentry()

Create a new pinentry object.

pinentry.connect([cmd], [callback])

Run the given pinentry command and connect to it. cmd defaults to "pinentry". If a callback is provided, it is called when the connection is established, with an error if there is an error. If a connection error occurs but there is no callback, an error is event is emitted on the pinentry object instead.

pinentry.confirm(options, callback)

Prompt the user to confirm something. If user chooses OK, callback is called with null arguments). If user chooses Cancel, callback is called with a PinentryOperationCancelledError object.

pinentry.message(options, callback)

Show a message to the user.

pinentry.getPin(options, callback)

Ask the user to enter a pin. The callback is called with an error object if there is an error, and a pin if the user enters a pin.

Event: 'error'

Emitted on error response for setting properties. Note that an error for a confirm/message/getPin call itself is put in the callback instead of an event.

Options

Use these parameters for the confirm, message, and getPin methods.

  • desc: Description text
  • prompt: Heading text
  • title: Window title text
  • ok: OK button text
  • cancel: Cancel button text
  • error: Additional text

Other options (unknown use or not working): keyinfo, repeat, repeaterror, notok, timeout, qualitybar, qualitybar_tt

PinentryOperationCancelledError

Pinentry.OperationCancelledError

Error object returned to callbacks when user cancels a prompt.

PinentryError

Pinentry.Error

Generic error object returned to callbacks.

License

Fair License (Fair)

© 2015 Charles Lehner

Usage of the works is permitted provided that this instrument is retained with the works, so that any entity that uses the works is notified of this instrument.

DISCLAIMER: THE WORKS ARE WITHOUT WARRANTY.