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

appc-license

v1.0.3

Published

A CLI tool to format the license into CSV

Downloads

5

Readme

Appc License Generator

This is to generate the license in CSV format.

Install

npm install -g appc-license

Uninstall

npm uninstall -g appc-license

Usage

Usage: appc-license [options]

Options:

  -h, --help           output usage information
  -V, --version        output the version number
  -i, --in <filename>  merge <filename> JSON in the final output
  -s, --setjson        sets output as JSON

Example Usage with an input JSON file and normal csv output

appc-license -i input.json > output.csv

Doing this will merge the output with the input file. How it works is it reads the JSON file and merges the JSON to the final output JSON. For any conflicts, the input file will have the final say.

Example Usage with an output of JSON

appc-license -s > output.json

This is the same as above except that the tag -s gives the output as JSON. This is useful to produce an initial JSON file that can be edited that can then be merged to replace certain default values. The output file can then be used as an input JSON file as above example usage.

Headers guide

This is the current header.

Code Type,Code Module,License,"Source of Code (URL, company, etc)",Modified(Y or N),Nature of Modifications,Library Linked(dynamic or Static) Or Command Line Interface?,Pass Thru (Y or N),Notes/Use of Code in

Example json file for json input

Format as follows

{
  "moduleName@semver": {
      "licenses": "Licenses as a string", // Defaults to ''
      "repository": "Repo Location", // Defaults to ''
      "licenseFile": "License Location", // Defaults to ''
      "codeType": "JS, Java. Any type you want.", // Defaults to 'JS'
      "modified": "Any modifications?", // Defaults to 'N'
      "natureOfModifications": "Nature of modifications?", // Defaults to ''
      "libraryLinked": "static?", // Defaults to 'static'
      "passThru": "Yes or no?", // Defaults to 'N'
      "notesUse": "Any additional notes" // Defaults to ''
  },
  ...
}

Please see file sample.json for a better example of input.

Example output

Code Type,Code Module,License,"Source of Code (URL, company, etc)",Modified(Y or N),Nature of Modifications,Library Linked(dynamic or Static) Or Command Line Interface?,Pass Thru (Y or N),Notes/Use of Code in
JS,"[email protected]","ISC","https://github.com/isaacs/abbrev-js",N,,static,N,
JS,"[email protected]","MIT","https://github.com/sindresorhus/ansi-regex",N,,static,N,
JS,"[email protected]","MIT","https://github.com/sindresorhus/ansi-styles",N,,static,N,
JS,"[email protected]","Apache-2.0","git+https://gisthub.com/5599af06731ce4636c157855b02e08d4",N,,static,N,