npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

lice

v1.3.0

Published

An open source license generator.

Downloads

94

Readme

lice

An open source license generator and license viewer.

NPM

Build status

lice logo

Installation

You probably want to install this globally, so you can easily add LICENSE files to all your open source projects.

npm install -g lice

Usage

lice
# follow the prompts

Non-interactive mode

Usage:
  lice [options]

Options:
  -h, --help      Display the help menu
  -g, --generate  Generate a license [default `true`]
  -l, --license   The type of license to generate, [default `mit`]
  -n, --name      The name of the generated license, [default `LICENSE`]
  -p, --path      License generation file path, [default `current working dir`]
  -s, --show      Show the contents of a license
  -u, --user      The name to use in the generated license [default `$LICE_USER`]
  -v, --version   Display the version
  -y, --year      Year placeholder [default `current year`]

Available licenses:
  aal              Attribution Assurance License (AAL)
  afl-3.0          Academic Free License 3.0 (AFL-3.0)
  apl-1.0          Adaptive Public License (APL-1.0)
  agpl-3.0         Affero GNU Public License 3.0 (AGPL-3.0)
  apache-2.0       Apache License, Verison 2.0 (Apache-2.0)
  apsl-2.0         Apple Public Source License (APSL-2.0)
  artistic-2.0     Artistic License (Artistic-2.0)
  bsd-2-clause     BSD 2-Clause "Simplified" or "FreeBSD" License (BSD-2-Clause)
  bsd-3-clause     BSD 3-Clause "New" or "Revised" License (BSD-3-Clause)
  bsl-1.0          Boost Software License (BSL-1.0)
  catosl-1.1       Computer Associates Trusted Open Source License 1.1 (CATOSL-1.1)
  cddl-1.0         Computer Associates Trusted Open Source License 1.0 (CDDL-1.0)
  cecill-2.1       CeCILL License (CECILL-2.1)
  cpal-1.0         Common Public Attribution License 1.0 (CPAL-1.0)
  cua-opl-1.0      CUA Office Public License Version 1.0 (CUA-OPL-1.0)
  ecl-2.0          Educational Community License, Version 2.0 (ECL-2.0)
  entessa          Entessa Public License Version 1.0 (Entessa)
  eudatagrid       EU Datagrid Software License (EUDatagrid)
  eupl             European Union Public License v. 1.2
  facebook.tos.txt Terms of Service Didn"t Read Facebook License (tosdr_facebook)
  gpl-3.0          GNU General Public License 3.0 (GPL-3.0)
  isc              ISC License (ISC)
  mit              The MIT License (MIT) [default]
  mpl-2.0          Mozilla Public License Version 2.0 (MPL-2.0)
  ms-pl            Microsoft Public License (MS-PL)
  onur_dev         onur_dev license (onur_dev license)
  transcopyright   Transcopyright License (Transcopyright)
  copyright        Copyright license (Copyright)
  w3c              The W3C SOFTWARE NOTICE AND LICENSE (W3C)
  zlib-libpng      The zlib/libpng License (Zlib)

Example

Let's say you want an MIT license for your project. Switch to the directory where you want the license generated, run lice and follow the prompts:

cd /your/project/dir
lice
#follow the prompts, your license will be generated in /your/project/dir

Or if you prefer non-interactive mode:

lice -g -l mit -u 'John Doe' # see above for flag definitions or run `lice -h`

Note

You may provide a path to where you want the license generated via the -p option.

Contributing

Please help add more licenses! Submit a PR and I will get it merged ASAP.

  1. Add a text file with your license content in the licenses dir.
  2. Edit licenses.js
  3. Update the Available licenses section in README.md
  4. Update the help file Available licenses section in help.txt

A good place to find licenses to add is the Open Source Initiative license page

Thanks, related projects