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

license-types

v3.1.0

Published

A rough classification of licenses such as by aspects of permissiveness

Downloads

289

Readme

license-types

A rough classification of licenses such as by aspects of permissiveness (a license will set these with a true boolean value when relevant), categories adapted from https://github.com/delfrrr/npm-consider.:

  • publicDomain - Licenses effectively releasing into the public domain
  • permissive - Highly permissive, like MIT
  • weaklyProtective - Some protective aspects, like LGPL or MPL
  • protective - Protective, like GPL
  • networkProtective - Protective, including over network use, like AGPL
  • useProtective - Has restrictions on usage (e.g., non-commercial), like Creative Commons Non-Commercial licenses
  • modifyProtective - Prevents modification, like Creative Commons No-Derivatives licenses

These categories have generally been defined to be mutually exclusive, though useProtective and modifyProtective may be used together or one may be used exclusive to the other.

See a JSON Schema file specifying this format.

A file types.json is also provided to suggest some English text and colors for the types (with greenish tones suggesting more permissive license types and reddish tones suggesting the need for more caution by users/sharers/modifiers of the code due to more stringent requirements, and darker tones indicating unclear or fully restricted uses).

The types.json file also has its own JSON schema. Note that in addition to the types in the license types JSON, this latter file also has entries for "unlicensed" (as "UNLICENSED" is used by npm for copyright being reserved), "custom" (where "SEE LICENSE IN " prefixes an entry in npm license), "uncategorized" (for any licenses we have yet to categorize), and "missing" (for packages which simply don't list any license type; while the copyright should need to be treated as reserved, it is distinct in that the author may have inadvertently failed to specify it).

None of this is legal advice and none of this should be considered as a warranty, as final, or as authoritatively accurate. Pull requests are welcome to add new licenses and their metadata (providing a link).

install

npm i license-types

Usage

import getLicenseTypes from 'license-types';
const licenseTypes = await getLicenseTypes();

Authors and license

Brett Zamir and contributors.

MIT License, see the included LICENSE-MIT.md file.