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 🙏

© 2024 – Pkg Stats / Ryan Hefner

delice

v1.0.2

Published

delice is a CLI intended to help you gain insight into your dependencies licenses.

Downloads

8

Readme

delice

delice is a CLI intended to help you gain insight into your dependencies licenses.

Usage

Via npx:

npx delice

Via global install:

npm install delice -g
delice

Commands

Currently, there is only a default command:

delice [directory]

Running delice by itself will check the current working directory's node_modules directory. If you pass a directory, that directory's node_modules directory will be searched.

Options

  • --version: Boolean. Show version number
  • -h, --help: Boolean. Show help
  • -j, --json Boolean. Return JSON rather than a human-readable CLI output.

Output

  • License Expression
    • A license expression that occured inside of node_modules
  • Occurances
    • Number of times a license was read from a package.json in the given directory
  • Conformance
    • A set of data about license conformance
    • See the module, conformance, for more information.
  • Packages
    • A list of all packages that fall under a license

Reasoning

Currenyly, most well-maintained tooling around licensing is pay-to-play. You need to pay to understand what you're consuming and how. The intent of delice (and liblice and conformance) is to help begin to surface more of this information in an open-source, accessible way.

delice is intended to be the CLI approach to this problem. Ideally, you can pop a delice configuration into your project and then fail if certain license conditions occur with the modules in your application. Additionally, being able to install a delice config as a dependency in your projects and validate via that path would be the end-game.

Continued Development

Basically a roadmap.

Coming soon

  • --ci flag that will fail on bad licenses
  • .delicerc / package.json property that will allow you to configure licenses and conditions that will pass/fail
  • filter by license: delice license mit
  • filter by package: delice package mit
  • list of all licenses, no dependencies or other metadata
  • use spdx-correct to validate license expressions that are slightly not correct (probably in liblice)
  • features you'd like to see?

Maybe in the future, if people want it

  • differentiation of dependencies vs. devDependencies
  • dry runs as a first-class (dependency resolution and check licenses without installing to disk)
  • features you'd like to see?

Probably in the future

  • npm install delice-${name}-config to follow a specific configuration with zero effort
  • features you'd like to see?

Related Projects

Both liblice and conformance are modules that were originally part of the delice codebase, but were split out since they were valuable on their own and more maintainable if they were out of the CLI.

What is liblice?

liblice is the module that does the majority of the work to build out the data that delice surfaces to you. If you're looking to programatically get the kind of inofrmation you'd get from delice, check out liblice.

What is conformance?

conformance specifically looks at a license string and provides hopefully relevant metadata about that license from the perspective of SPDX and the intersection SPDX and the Open Source Initiative and the Free Software Foundation. Currently, it's strictly limited to SPDX information, but could be expanded in the future should there be interest.