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

datatables.net-key-validator-shim

v1.0.0

Published

A minimal implementation of crypto.subtle with ECDSA / P-256 to validate keys.

Readme

An extremely minimal key validator

Web-browsers provide crypto.subtle which can be used to validate public / private key digital signature. This API is used by DataTables Plus to verify license keys. However, crypto.subtle is not available on connections which are not secured by SSL (i.e. if you are using http://, which is common in local development and testing). In such a case, the license key cannot be validated.

This library provides that ability, acting as a shim for the specific validation that DataTables Plus uses (ECDSA / P-256). That is all it provides! It is not a full shim for the web crypto API.

If you need the complete web crypto API on an insecure connection, use webcrypto-liner or similar, which can be used in place of this library. It is a larger, more complete package, while this one focuses on a single task only.

Installation

This library can be installed from npm using:

npm install --save datatables.net-key-validator-shim

Or from the DataTables CDN:

https://cdn.datatables.net/key-validator-shim/1.0.0/index.min.js

You can also use the DataTables download builder and select the "Key Verification Shim" package in the "External libraries" section.

Usage

If you are a developer using DataTables, or some other library that makes use of the functionality provided by this package, you don't need to do anything other than include the library.

NPM

To include when using a package manager / bundler:

import 'datatables.net-key-validator-shim';

The package will automatically attach itself to the window global when run on the client-side.

CDN / download

Include the library directly be including the script (or use the DataTables download builder to build a package for you):

<script src="https://cdn.datatables.net/key-validator-shim/1.0.0/index.min.js"></script>

Make sure you include this before you load DataTables core. Again, it will automatically attach itself to the window global, allowing the key verification used by DataTables to complete.

Package managers

If you are implementing key verification, see the MDN documentation for crypto.subtle.