3.0.1 • Published 1 year ago

github-licenses v3.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

github-licenses

Get all the licenses that are included in GitHub.

npm npm David David GitHub
NPM

Licenses

All licenses are exported function that are listed in the table below. Some takes the name, and optionally, the year. For example:

const Licenses = require("github-licenses");
Licenses.MIT("Deez Nuts", 2021); 
/* MIT License

Copyright (c) 2021 Deez Nuts

Permission is hereby granted...*/
const Licenses = require("github-licenses");
Licenses.MIT("Deez Nuts", 2012); 
/* MIT License

Copyright (c) 2012 Deez Nuts

Permission is hereby granted...*/

The list of licenses that are included are:

LicenseFunctionTakes name + year
Academic Free License v3.0AFLNo
Apache License 2.0APACHENo
Artistic License 2.0ARTNo
Boost Software License 1.0BSLNo
BSD 2-clause "Simplified" LicenseBSD2CYes
BSD 3-clause "New" or "Revised" LicenseBSD3CYes
BSD 3-clause Clear LicenseBSD3CCYes
Creative Commons Zero v1.0 UniversalCC0No
Creative Commons Attribution 4.0CCBYNo
Creative Commons Attribution Share Alike 4.0CCBYSANo
Do What The F You Want To Public LicenseWTFPLNo
Educational Community License v2.0ECLNo
Eclipse Public License 1.0EPL1No
Eclipse Public License 2.0EPL2No
European Union Public License 1.1EUPLNo
GNU Affero General Public License v3.0AGPLNo
GNU General Public License v2.0GPL2No
GNU General Public License v3.0GPL3No
GNU Lesser General Public License v2.1LGPL21No
GNU Lesser General Public License v3.0LGPL3No
ISC LicenseISCYes
LaTeX Project Public License v1.3cLPPLNo
Microsoft Public LicenseMSPLNo
MIT LicenseMITYes
Mozilla Public License 2.0MPLNo
Open Software License 3.0OSLNo
PostgreSQL LicensePOSTSQLYes
SIL Open Font License 1.1OFLYes
University of Illinois/NCSA Open Source LicenseNCSAYes
The UnlicenseUNLNo
zlib LicenseZLIBYes

CLI

The CLI allows you to choose a license and write to a file. (Default: (cwd)/LICENSE)

Format: licenses (license) (option(s))

Options:

NameDescription
--output/-n?The output of the license
--name/-nThe name of the licensor
--year/-y?The year the license was created

License

This project is licensed under the MIT License.

3.0.1

1 year ago

3.0.0

1 year ago

2.7.0

3 years ago

2.6.1

3 years ago

2.6.0

3 years ago

2.7.2

3 years ago

2.6.3

3 years ago

2.8.0

3 years ago

2.7.1

3 years ago

2.6.2

3 years ago

2.5.3

3 years ago

2.7.4

3 years ago

2.7.3

3 years ago

2.7.6

3 years ago

2.7.5

3 years ago

2.5.0

3 years ago

2.5.2

3 years ago

2.5.1

3 years ago

2.4.0

3 years ago

2.3.0

3 years ago

2.2.0

3 years ago

2.1.0

3 years ago

2.0.0

3 years ago

1.2.0

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago