Created
June 24, 2021 10:06
-
-
Save DaneTheory/64b7ff10e301736530c44ca33ccbf39c to your computer and use it in GitHub Desktop.
The Package (dot) JSON: A story of love, triumph, and general witchcraft/wizardry - InitFields: License
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [{ | |
| "npm:current": { | |
| "ref": "", | |
| "source": [ | |
| ] | |
| }, | |
| "npm:legacy": { | |
| "ref": "", | |
| "source": [ | |
| ] | |
| }, | |
| "yarn:current": { | |
| "ref": "https://yarnpkg.com/configuration/manifest#license", | |
| "source": [ | |
| "An SPDX identifier that indicates under which license is your package distributed.", | |
| "_example_:\"license\": \"MIT\":_example_" | |
| ] | |
| }, | |
| "yarn:legacy": { | |
| "ref": "https://classic.yarnpkg.com/en/docs/package-json/#toc-license", | |
| "source": [ | |
| "All packages should specify a license so that users know how they are permitted to use it and any restrictions that you are placing on it.", | |
| "You are encouraged to use an Open Source _url[https://opensource.org/licenses/alphabetical]_:(OSI-approved):_url_ license unless you have a specific reason not to. If you built your package as part of your job it’s likely best to check with your company before deciding on a license.", | |
| ["Must be one of the following:", | |
| [ | |
| "A valid _url[https://spdx.org/licenses/]_:SPDX license identifier:_url_ if you are using a standard license.", | |
| "A valid _url[https://www.npmjs.com/package/spdx]_:SPDX license expression:_url_ syntax 2.0 expression if you are using multiple standard licenses.", | |
| "A 'SEE LICENSE IN <filename>' string that points to a '<filename>' in the top level of your package if you are using a non-standard license.", | |
| "A 'UNLICENSED' string if you do not want to grant others the right to use a private or unpublished package under any terms." | |
| ] | |
| ] | |
| "_example_:{ \n \"license\": \"MIT\", \n \"license\": \"(MIT or GPL-3.0)\", \n \"license\": \"SEE LICENSE IN LICENSE_FILENAME.txt\", \n \"license\": \"UNLICENSED\" \n }:_example_" | |
| ] | |
| } | |
| }] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment