# Generate a Creative Commons LICENSE for your Creative Work yo license-ccNow coming with a license chooser integrated to help you pick LICENSE!
First, install Yeoman and generator-license-cc using npm (we assume you have pre-installed node.js).
npm install -g yo npm install -g generator-license-ccGenerate a Creative Commons LICENSE for your Creative Work:
yo license-ccgenerator-license-cc can be used when composing your own generator. An example code how to trigger this generator:
this.composeWith(require.resolve('generator-license-cc/app'), { name: 'Bob A', // (optional) Author's Name creativeWork: 'Media & Data Files', // (optional) Creative Work Title email: 'bob@example.org', // (optional) Author's Email website: 'http://www.example.org', // (optional) Author's Website year: '2016-2017', // (optional) Year(s) to include ccLicensePrompt: 'Choose a License:', // (optional) custom license prompt text ccLicense: 'chooser', // (optional) choose CC license (spdx) or 'chooser' output: 'docs/LICENSE' // (optional) choose output file });In order to get a list of licenses supported in this generator, you can call:
require('generator-license-cc').licensesNote: Make sure you have generator-license-cc as a dependency in your generator's package.json:
$ npm install --save generator-license-cc For more information read Yeoman's Documentation page on Composability.
This generator allows you to generate LICENSE file for your project with one of Creative Commons Licenses:
CC-BY-4.0Ceative Commons Attribution 4.0 LicenseCC-BY-SA-4.0Cretive Commons Attribution Share Alike 4.0 LicenseCC-BY-ND-4.0Cretive Commons Attribution No Deriveratives 4.0 LicenseCC-BY-NC-4.0Cretive Commons Attribution Non Commercial 4.0 LicenseCC-BY-NC-SA-4.0Cretive Commons Attribution Non Commercial Share Alike 4.0 LicenseCC-BY-NC-ND-4.0Cretive Commons Attribution Non Commercial No Deriveratives 4.0
Alternatively, you can pick CC0 Public Domain 1.0 to waive all copyright.
- generator-license - Generate LICENSE for source code.
- Yeoman has a heart of gold.
- Yeoman is a person with feelings and opinions, but is very easy to work with.
- Yeoman can be too opinionated at times but is easily convinced not to be.
- Feel free to learn more about Yeoman.
Please see CHANGELOG for information of what was changed.
Copyright (c) 2017 ek9 dev@ek9.co (https://ek9.co)
This work is licensed under MIT LICENSE.
