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

securesign.js

v0.0.26

Published

# SecureSign.jsSecureSign.js is a library developed by Knight for [Library of Code's](https://www.libraryofcode.us/) securesign API! SecureSign.js will allow you to easily manage the API. SecureSign.js provides full accessability when it comes to what it

Readme

SecureSign.js

SecureSign.js is a library developed by Knight for Library of Code's securesign API! SecureSign.js will allow you to easily manage the API. SecureSign.js provides full accessability when it comes to what it can do. Everything documented on the securesign API is included in SecureSign.js. SecureSign.js is still being constantly updated.

Installation

To install SecureSign.js, just run npm i securesign.js in your terminal.

Getting Started

To get started with SecureSign.js, you need to initialize your client. Do this this, simply do:

const secureSign = require('securesign.js');
const Client = new secureSign.Client('yourHash');

Your hash can be found under "Account Details" at the Securesign website.

Once you have this, it is highly recommended you run the ready event. The callback function inside the ready event will fire when the client has been fully initialized. Without the use of the ready event, you could run into errors due to the client not being quite ready yet. To run the ready event, simply do:

Client.on('ready', (info) => {
  //Your callback function goes here.
  console.log(`${info.username} is ready!`);
});

The parameter for the callback, info, is literally the exact same thing as Client... It's your choice whether to use it or not.

Documentation

Information attached to client

Name | Description | Example ---- | ----------- | ------- hash | Will return the hash you used to initialize the client | Client.hash username | Will return the username of your securesign account | Client.username id | Will return the ID of your securesign account | Client.id email | Will return the email of your securesign account | Client.email class | Will return the class of your securesign account | Client.class total | Will return the total amount of certificates created under your account | Client.total allowed | Will return the total amount of certificates allowed to be issued under your account | Client.allowed promo | Will return a boolean whether or not you have promo's activated...(I think) | Client.promo usedPromoKeys | Will return an array of all the used promo keys under your account | Client.usedPromoKeys

Functions attached to client

generateKey()

This function will generate a new ECC/RSA private key.

Returns String

Parameters | Description | Type ---------- | ----------- | ---- type | ECC or RSA | String info | For a ECC key, specify the curve name. RSA specify the modulus. | String or Number

Example

Client.generateKey('ECC', 'prime256v1').then(r => console.log(r)).catch(e => console.error(e));

listCurves()

This function provides a list of available ECC named curves.

Returns String

No parameters.

Example

Client.listCurves().then(r => console.log(r)).catch(e => console.error(e));

listCerts()

This function provides an array of objects, in each object is certificate information for each certificate you have created.

Returns Array

No parameters

Example

Client.listCerts().then(r => console.log(r)).catch(e => console.error(e));

createCert()

This is currently the most complex function. This function creates a new certificate.

Returns unknown

Parameters | Description | Type ---------- | ----------- | ---- classNum | The class used to make the certificate. Class 1-2 are supported on ECC, all classes are supported with RSA. | Number cn | The Common Name of the certificate. | String md | The Hashing Algorithm to use for the certificate, can be SHA256, SHA384, or SHA512. | String type | The CA key type to use, can be ECC or RSA. | String csr | The PEM-encoded CSR. | Path to CSR

Example

Client.createCert(2, '[email protected]', 'SHA512', 'ECC', fs.readFileSync('/path/to/my.csr', {encoding: 'utf8'})).then(r => console.log(r)).catch(e => console.error(e));