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

spdx-license-urls

v0.0.3

Published

Provide license name via spdx-licenses, generated license URLs and additional details.

Readme

spdx-license-urls

Provide license name via spdx-licenses, generated license URLs and additional details.

Main purpose of this module is to centralize efforts for URL template maintaince and anomaly handling.

The additional info on licenses is very sparse for now, so feel free to pull-request better data for your favorite licenses.

API

  • licu(spec): Try to find info on the license spec specified as an SPDX string. If found, return that info as a JS object, else return false.
    • Special list attributes: Some keys in the info object are each either false or an array of identifier strings that you might want to lookup further. The lists have not been checked for validity, so be prepared for errors in the follow-up lookups.
      • alertnatives: Alternative licenses. licu() might know about them.
      • exceptions: Special terms and conditions. licu() can ask the spdx-license-exceptions module about them. Some of them grant additional usage permissions with fewer restrictions, e.g. for fonts.
  • licu.orThrow(spec): Like licu(spec) but on failure, throw an error instead of returning false.
  • licu.spdxVersions: The list versions of lookup tables used.

Usage

In node.js: see source of cli.js

CLI:

$ spdx-license-urls -v
{ "spdxTableVersions": {
    "licenses": "1.19",
    "exceptions": "2.5" } }
$ spdx-license-urls GPL-3.0 WITH Font-exception-2.0 OR Expat
{ "name": "GNU General Public License v3.0 only",
  "id": "GPL-3.0",
  "OSIApproved": true,
  "idUrlArg": "GPL-3.0",
  "licTextPlainUrl": "http://git.spdx.org/?a=blob_plain;p=license-list.git;hb=HEAD;f=GPL-3.0.txt",
  "licInfoUrl": "https://spdx.org/licenses/GPL-3.0.html",
  "licAuthor": {
    "firstName": null,
    "lastName": null,
    "email": null,
    "blogTitle": null,
    "blogUrl": null,
    "websiteTitle": null,
    "websiteUrl": null,
    "githubNick": null,
    "twitterNick": null },
  "licTextOsiUrl": "https://opensource.org/licenses/GPL-3.0",
  "licTextAuthoritativeUrl": null,
  "standardFileHeader": null,
  "logos": [ {
      "srcType": "wmcommons",
      "srcId": "GPLv3_Logo.svg" } ],
  "wikipediaPageUrlpart": {
    "de": "GNU_General_Public_License",
    "en": "GNU_General_Public_License" },
  "alertnatives": [
    "Expat" ],
  "exceptions": [
    "Font-exception-2.0" ] }
$ spdx-license-urls fonT-excEption-2.0
{ "id": "Font-exception-2.0",
  "name": "Font exception 2.0",
  "idUrlArg": "Font-exception-2.0",
  "xcpInfoUrl": "https://spdx.org/licenses/Font-exception-2.0.html" }

License

ISC