I've got a package.json
that's expecting a SPDX-approved license acronym, but I can't find one that means 'proprietary commercial license, all rights reserved'.
Is there one for non-FOSS, where I want to specify that I want to allow no reuse?
Software Engineering Stack Exchange is a question and answer site for professionals, academics, and students working within the systems development life cycle. It only takes a minute to sign up.
Sign up to join this communityAs of npm 3.10 you have to use UNLICENSED:
{ "license": "UNLICENSED"}
or
{ "license": "SEE LICENSE IN <filename>"}
The value of license must either one of the options above or the identifier for the license from this list of SPDX licenses. Any other value is not valid.
The following is no longer valid for current versions of npm
For npm versions before 3.10 you may use:
{ "license" : "LicenseRef-LICENSE" }
Then include a LICENSE
file at the top level of the package. It could be as short as:
(c) Copyright 2015 person or company, all rights reserved.
But you might want to be more explicit about what is not allowed.
{ "license": "UNLICENSED"}
"if you do not wish to grant others the right to use a private or unpublished package under any terms". That's an even easier option than an explicit license file.
Sep 28, 2015 at 9:49
license should be a valid SPDX license expression
for me
"private": true
and it won't bother you about including a license.
npm
-recommended "UNLICENSED" with the SPDX compliant identifier "Unlicense", which is the exact opposite of "all rights reserved".
Oct 17, 2017 at 11:04
This does not exactly answer your question, but what about:
{
"license": "Proprietary",
"private": true,
}
license: "UNLICENSED",
. [1] github.com/npm/npm/issues/8918might not actually [have] an acronym for what you are requesting
is still a perfectly valid answer to a perfectly valid question."license": "proprietary"
according to the docs.