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

adca-template-parser

v1.0.1

Published

Provides a bridge between certutil -v -template and JS

Readme

Node.JS Active Directory Certificate Template Parser

This package provides an easy way to parse all templates from ADCA service. It's packed with a binary for calling certutil -v -template which then puts everything in a JSON array object.

The library retrieves every single option of the certificate template.

Caution! Even if the binary is optimized for speed, it might still need some time to process large active directory template stores!

Installation & Usage

foo@bar: npm install adca-template-parser --save

Import openssl module:

const adtparser = require("adca-template-parser");

We can now execute the adtparser binary:

// This method will return every template in the ad. Not recommended.
adtparser.full(function (data) {
  console.log(data);
});
// This method will return every template in the ad but breaks it down to name and friendly name. This is the recommended function because its output is minified down to two variables.
adtparser.minified(function (data) {
  console.log(data);
});
// This method will retrieve the template by name. It will output a big json object containing every information about it.
adtparser.run(function (data) {
  console.log(data);
});

Best Practise

I recommend running the adtpaser.minified method and store it into a select box for example.
After the user selects a template call adtparser.template with the selected name and crawl the rest.
Calling adtparser.full might lead to an overhead generated by the huge JSON object. It might also lead into JSON parsing errors.

The last parameter of the function will always be the callback function.

The Library will call this function with all return values of the process:

Important: "processError" is not directly a sign of an error, consider hasError as the primary detection. Check this Article for more information about how openssl for example handles stderr.

[
  (processError: ""),
  (processOutput: "[{...}, {...}]"),
  (processExitCode: 0), // <- That's the important one!
  (hasError: false),
];

That's all that you need to start using it.
For any information, improvements or bug fixes please contact me.