LogoLogo
  • Introduction
  • CLI
    • Chocolatey
    • Docker
    • Git
    • nmap
    • npm
    • npm - n
    • npm - npm-check-updates (ncu)
    • npm - npm-license-crawler
    • Python
    • Ubuntu
    • Windows Commands
  • JS
    • JSDoc
Powered by GitBook
On this page
  • Save as CSV
  • Options

Was this helpful?

  1. CLI

npm - npm-license-crawler

Commands used by npm-license-crawler (https://www.npmjs.com/package/npm-license-crawler)

Save as CSV

npm-license-crawler --csv [file location/name]

Example:

npm-license-crawler --csv license.csv

Options

  • --csv /path/to/save.csv Saves to CSV

  • --start directory-path: Starting path

  • --exclude directory-path: directories (and subdirectories) that should be excluded

  • --unknown: show only licenses that can't be determined or have been guessed.

  • --dependencies: show only third-party licenses, i.e., only list the dependencies defined in package.json.

  • --production: show only production dependencies

  • --development: show only development dependencies

  • --onlyDirectDependencies: show only direct dependencies licenses, i.e., don't list dependencies of dependencies.

  • --omitVersion: omit version numbers in result (e.g. "npm-license-crawler@0.1.5" becomes "npm-license-crawler")

  • --no-color: (or --no-color) don't show colors in the console output

  • --relativeLicensePath: output the relative file path for license files.

  • --json /path/to/save.json: export data as JSON to the given file. The path will be created if it does not exist.

Previousnpm - npm-check-updates (ncu)NextPython

Last updated 5 years ago

Was this helpful?