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

license-report-generator-md

v1.0.1

Published

This script generates a markdown table report of the licenses used by a project. It generates two reports: one for direct dependencies and one for all dependencies.

Downloads

7

Readme

License Checker Script

This script generates license reports for the direct and all dependencies of a Node.js project. It can be run using npm or yarn, and pre-built executables are also available for Windows, macOS, and Linux.

Features

  • Generates a markdown report for direct dependencies.
  • Generates a markdown report for all dependencies.
  • Supports running via npm, yarn, or as a standalone executable.

Prerequisites

  • Node.js (if running with npm or yarn)
  • npm or yarn installed globally

Installation

You can install this package globally using npm:

npm install -g license-report-generator-md
# or
yarn global add license-report-generator-md

Usage

Running with node

  1. Clone the repository:

    git clone https://github.com/LichiBruno/license-report-generator
    cd license-checker-script
    
  2. Install dependencies:

    npm install
    # or
    yarn install
  3. Run the script:

    node index.js <path-to-project>

    Replace <path-to-project> with the path to your project directory.

Running as a Global Package

If you installed the package globally using npm or yarn, you can run it directly from the command line:

license-report-generator-md <path-to-project>

Replace <path-to-project> with the path to your project directory.

Running with pre-built executables

Pre-built executables are available for Windows, macOS, and Linux. You can download the appropriate executable for your system from the Releases page.

  1. Download the executable:

    • Windows: https://github.com/LichiBruno/license-report-generator/releases/download/1.0.0/license-report-generator-win.exe
    • macOS: https://github.com/LichiBruno/license-report-generator/releases/download/1.0.0/license-report-generator-macos
    • Linux: https://github.com/LichiBruno/license-report-generator/releases/download/1.0.0/license-report-generator-linux
  2. Make the executable file runnable (Linux and macOS):

    chmod +x license-checker-script-darwin-x64
    # or
    chmod +x license-checker-script-linux-x64
  3. Run the executable:

    ./license-checker-script-darwin-x64 <path-to-project>
    # or
    ./license-checker-script-linux-x64 <path-to-project>
    # or for Windows
    license-checker-script-win32.exe <path-to-project>

Output

The script will generate two markdown files in the directory where the script is executed:

  • DIRECT_DEPENDENCIES_LICENSES_REPORT.md: This file contains a list of all direct dependencies of the project, along with their licenses and copyright information.
  • ALL_DEPENDENCIES_LICENSES_REPORT.md: This file contains a list of all dependencies of the project, along with their licenses and copyright information.

Contributing

Contributions are welcome! If you have any suggestions or improvements, please open an issue or submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.