GithubHelp home page GithubHelp logo

pombredanne / licenser-3 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from laoujin/licenser

0.0 2.0 0.0 300 KB

Generate your license file from package.json. Keep it updated each year :)

License: MIT License

JavaScript 100.00%

licenser-3's Introduction

========================
== LICENSE GENERATOR ==
========================

Choosing an OSS license doesn’t need to be scary...
Visit: http://choosealicense.com/

Installation

$ npm install -g licenser

Usage

In your project directory root:

# Create or overwrite LICENSE file from package.json or from `licenser config`
$ licenser set

# Create or overwrite LICENSE file and update package.json
$ licenser set apache2
$ licenser set mit
$ licenser set gpl3

# Update the year in the LICENSE file
$ licenser update

Config

If a package.json is present at the working directory, author, project and license information is read from there.
If not, author information is read from ~/.gitconfig

Your default license and author data can be set globally:

$ licenser config --author="Mr. Fancy Pants" --email="[email protected]"
$ licenser config --default-name="LICENSE.txt" --license=CC-BY-NC-4.0

# To overwrite the package.json and file with the `licenser config` values  
# ATTN: Does not overwrite author(s) in package.json  
$ licenser set -g

You can also edit config.json directly.

Other Commands

The command line parameters are parsed by nomnom, so you can use licenser -h for information about the available commands and also licenser set -h for help on a specific command.

# Find you a license
$ licenser list -v # Verbose output for the most commonly used licenses
$ licenser list -c # Creative Commons licenses
$ licenser list open --osi # All OSI approved licenses matching 'open'

# Output license text to console
$ licenser print gpl3
$ licenser print gpl3 --header # Print the "HOW TO APPLY THESE TERMS" header

licenser-3's People

Contributors

laoujin avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.