delice is a CLI intended to help you gain insight into your dependencies licenses.
Via npx:
npx delice
Via global install:
npm install delice -g
delice
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.
--version
: Boolean. Show version number-h
,--help
: Boolean. Show help-j
,--json
Boolean. Return JSON rather than a human-readable CLI output.
- License Expression
- A license expression that occurred inside of
node_modules
- A license expression that occurred inside of
- Occurrences
- Number of times a license was read from a
package.json
in the given directory
- Number of times a license was read from a
- 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
Currently, 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.
Basically a roadmap.
--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 inliblice
) - features you'd like to see?
- 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?
npm install delice-${name}-config
to follow a specific configuration with zero effort- features you'd like to see?
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.
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 information you'd get from delice, check out liblice.
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.