Utility script to submit package-lock.json and yarn.lock files to the Phylum API
- NodeJS
- NPM
- Phylum-cli
- Install prerequisite software
- Clone this repository
git clone https://github.com/peterjmorgan/phylum-js-submit.git- Change to the phylum-js-submit directory
cd phylum-js-submit- Install NodeJS dependencies via NPM
npm install- Optionally, install globally so phylum-js-submit is set up in NPM's path
npm install -g$ 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>