license.js
Advanced tools
Comparing version 2.0.0-rc.0 to 2.0.0-rc.1
{ | ||
"name": "license.js", | ||
"version": "2.0.0-rc.0", | ||
"version": "2.0.0-rc.1", | ||
"description": "Get SPDX license template text", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -15,7 +15,7 @@ # Readme | ||
```js | ||
var license = require('license.js'); | ||
const { makeLicenseSync } = require('license.js'); | ||
// Params required: project, year, description, organization | ||
var mit = license('MIT', { | ||
var mit = makeLicenseSync('MIT', { | ||
year: 2016, | ||
@@ -34,49 +34,10 @@ project: 'License.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 } | ||
header: null, | ||
warranty: null } | ||
``` | ||
If license has header file, it return in header property. | ||
If no license found `null` returns. | ||
If no license found `Error` throwns. | ||
## LICENSES | ||
```js | ||
var license = require('license.js'); | ||
console.log(license.available()); | ||
``` | ||
* 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 | ||
@@ -83,0 +44,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
339215
63