SPDX-tech-folk:
I write just to let folks know that www.npmjs.com, the most popular
search page for the npm package registry, is now making use of spdx.org
and SPDX license expressions in a far more visible way. The site now:
1. displays links to license texts on spdx.org, including for
dual-license and other non-trivial SPDX expressions
2. displays a tiny green OSI logo (and obligatory registered-trademark
symbol) for packages that offer at least one OSI-approved choice
3. displays license information only for packages in the registry that
set `license` in `package.json` to a valid SPDX expression
For example:
1. yargs, a popular, MIT-licensed command-line option parser:
https://www.npmjs.com/package/yargs
2. v3l2camera, a package dual-licensed under MIT or LGPL-3.0:
https://www.npmjs.com/package/v4l2camera
If you're interested in the code behind these features, which is all in
JavaScript:
- A JSON-formatted list of SPDX identifiers of OSI-approved
terms:
https://www.npmjs.com/package/spdx-osi
- A function predicate that takes an SPDX expressions and returns a
boolean value indicating whether any license choice is OSI-approved:
https://www.npmjs.com/package/spdx-is-osi
- A function that takes a string SPDX expression and returns HTML for a
plain English phrase approximating its meaning, with links to terms on
spdx.org:
https://www.npmjs.com/package/spdx-to-html
The pull requests for these features were mine, but wouldn't have landed
without the help of Aria Stewart at npm, Inc.
Many thanks to all who've contributed from the SPDX side to make this
kind of thing possible!
Best,
K
--
Kyle Mitchell, attorney // Oakland // (510) 712 - 0933
_______________________________________________
Spdx-tech mailing list
[email protected]
https://lists.spdx.org/mailman/listinfo/spdx-tech