Socket
Socket
Sign inDemoInstall

license.js

Package Overview
Dependencies
0
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.0-reserved to 1.0.0

.npmignore

29

package.json
{
"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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc