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 🙏

© 2025 – Pkg Stats / Ryan Hefner

key-gen

v0.0.1

Published

Simple key generation tool written in node.js using Hmac algorithm

Downloads

4

Readme

key-gen

A lightweight node.js key generation app.

v0.0.1

Info

Note There are 3 possible env vars that can be set in order to customise to suit your needs:

  • process.env.APP_SALT
  • process.env.APP_ENCRYPTION
  • process.env.APP_ENCODING

Default values are used if these aren't set and they can be found in config/config.js.

###Note: Prior to setting the env vars I encourage you to read on [crypto] (http://nodejs.org/api/crypto.html#crypto_crypto_createhmac_algorithm_key) from the node.js documentation and especially on Hmac class which is used in generating the key here.

Installation

$ npm install key-gen

Usage

var keyGen = require('key-gen');

var options = {
  prefix: ['identifier1', 'identifier2', 'identifier3'],
  data: {
    data1: 'data1',
    data2: 'data2',
    data3: 'data3'
  }
}

var key = keyGen.generate(options);

Provided the default config values remain unchanged the above key will equal:

identifier1:identifier2:identifier3:4c0398bf4e511bef5355c32fd71bc9f1ffcde3b144cf3725dae9062cfaa1ab118d4c984855d38dea8efa00422de45e511c3da710541c7c578ee26037ff1d9a4a

Run tests

$ make test

License

Released fully under [MIT license] (http://viktort.mit-license.org)