Skip to content

peterjmorgan/phylum-js-submit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

phylum-js-submit

Utility script to submit package-lock.json and yarn.lock files to the Phylum API

Prerequisites

  • NodeJS
  • NPM
  • Phylum-cli

Installation

  1. Install prerequisite software
  2. Clone this repository
git clone https://github.com/peterjmorgan/phylum-js-submit.git
  1. Change to the phylum-js-submit directory
cd phylum-js-submit
  1. Install NodeJS dependencies via NPM
npm install
  1. Optionally, install globally so phylum-js-submit is set up in NPM's path
npm install -g

Usage

$ node phylum-js-submit.js -h
Options:
      --version     Show version number                                [boolean]
  -t, --type        Type of file to process (`package` or `yarn`, defaults to
                    `package`)                                          [string]
  -H, --heuristics  Submit previously processed packages for heuristics only,
                    not a full processing run                          [boolean]
  -d, --dry-run     Print the list of packages that would be submitted, but do
                    not actually submit them                           [boolean]
  -h, --help        Show help                                          [boolean]

Submit a package-lock.json textfile to Phylum API

phylum-js-submit.js -t package <path_to_package-lock.json>

Submit a yarn.lock textfile to Phylum API

phylum-js-submit.js -t yarn <path_to_yarn.lock>

About

Utility script to submit package-lock.json and yarn.lock files to the Phylum API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published