license.js
Advanced tools
Comparing version 0.0.0-reserved to 1.0.0
{ | ||
"name": "license.js", | ||
"version": "0.0.0-reserved", | ||
"license": "UNLICENSED", | ||
"description": "Package reserved", | ||
"author": "Reserver <reserver@lestad.net> (https://npmjs.com/~lestad)" | ||
} | ||
"version": "1.0.0", | ||
"description": "Get SPDX license template text", | ||
"main": "lib/license.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+ssh://git@github.com/LestaD/license.js.git" | ||
}, | ||
"keywords": [ | ||
"license", | ||
"generate", | ||
"gpl3", | ||
"npm", | ||
"package" | ||
], | ||
"author": "Sergey Sova <i.am@lestad.net> (https://lestad.top)", | ||
"license": "GPL-3.0", | ||
"bugs": { | ||
"url": "https://github.com/LestaD/license.js/issues" | ||
}, | ||
"homepage": "https://github.com/LestaD/license.js#readme" | ||
} |
@@ -1,8 +0,93 @@ | ||
# Reserved package | ||
# Readme | ||
This package name is not currently in use, but was formerly occupied | ||
by future projects. To avoid use name of package, it's was reserved, and we'll probably give it to you if you | ||
want it. | ||
**license.js** get license template with header by SPDX id | ||
If you want this package, please contact package@atomix.email and | ||
request the name. | ||
## Install | ||
```bash | ||
npm install --save license.js | ||
``` | ||
## Usage | ||
```js | ||
var license = require('license.js'); | ||
// Params required: project, year, description, organization | ||
var mit = license('MIT', { | ||
year: 2016, | ||
project: 'License.js', | ||
description: 'SPDX licenses template', | ||
organization: 'Sergey Sova <i.am@lestad.net>' | ||
}); | ||
console.log(mit); | ||
``` | ||
Result: | ||
```js | ||
{ text: 'Copyright (c) 2016 Sergey Sova <i.am@lestad.net>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\nDAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\nOTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE\nOR OTHER DEALINGS IN THE SOFTWARE.\n', | ||
params: | ||
{ year: 2016, | ||
project: 'License.js', | ||
description: 'SPDX licenses template', | ||
organization: 'Sergey Sova <i.am@lestad.net>' }, | ||
id: 'MIT', | ||
header: null } | ||
``` | ||
If license has header file, it return in header property. | ||
If no license found `null` returns. | ||
## LICENSES | ||
* AGPL-3.0 | ||
* Apache-2.0 | ||
* BSD-2-Clause | ||
* BSD-3-Clause | ||
* CC-BY-3.0 | ||
* CC-BY-NC-3.0 | ||
* CC-BY-NC-ND-3.0 | ||
* CC-BY-NC-SA-3.0 | ||
* CC-BY-ND-3.0 | ||
* CC-BY-SA-3.0 | ||
* CC0-1.0 | ||
* CDDL-1.0 | ||
* EPL-1.0 | ||
* GPL-2.0 | ||
* GPL-3.0 | ||
* ISC | ||
* LGPL-3.0 | ||
* MIT | ||
* MPL-2.0 | ||
* Unlicense | ||
* WTFPL | ||
* X11 | ||
* Zlib | ||
## Add license | ||
If you want to add license from [SPDX list](http://spdx.org/licenses/), just make a [Pull Request](https://github.com/LestaD/license.js) | ||
# LICENSE | ||
Copyright (C) 2016 Sergey Sova <i.am@lestad.net> | ||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
> License txt files copied from https://github.com/licenses/license-templates |
Copyleft License
License(Experimental) Copyleft license information was found
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
SPDX disjunction
LicenseSPDX disjunction for an artifact's license information
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license
Found 1 instance in 1 package
Explicitly Unlicensed Item
License(Experimental) Something was found which is explicitly marked as unlicensed
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
SPDX disjunction
LicenseSPDX disjunction for an artifact's license information
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
332320
41
0
70
41
1
1
94
0
5