Skip to content

BillyNoyes/license-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Super Simple License Generator

Overview

Super Simple License Generator is a Node.js command-line tool for generating LICENSE files for your projects. It uses the GitHub API to fetch available license templates and allows you to customize the license with your name and the current year.

Installation

Ensure you have Node.js installed on your machine. You can install the package globally using npm or yarn:

npm install -g node-license-generator

or

yarn global add node-license-generator

Usage

Navigate to your project directory and run the following command to generate a license:

generate-license

You will be prompted to choose a license, enter your name, and specify the year.

Command-Line Arguments

You can also provide your name and year directly via command-line arguments to skip the prompts:

generate-license --name="John Doe" --year=2024

Examples

Example 1: Interactive Mode

generate-license

This command will prompt you to:

  • Choose a license from the list
  • Enter your name
  • Enter the year
  • Choose whether to update package.json license field or not

Example 2: Command-Line Arguments

generate-license--name="Jane Doe" --year=2024

This command will generate a LICENSE file for "Jane Doe" in the year 2024 without any prompts.

Development

Feel free to open issues or submit pull requests. Contributions are welcome!

License

This project is licensed under the MIT License.

Contact

For any questions or feedback, please open an issue on GitHub.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published