Npm Treatment Tools

Usage no npm install needed!

<script type="module">
  import npmTreatmentTools from '';



Helpers for treating npm lock files

Install from

npm install -g npm-treatment-tools

Current commands

  • npmtt
    • Runs the npm treatment tool


usage: npmtt [Options]

  help   print this helpful message
  remove   remove `resolved` and `integrity` fields from package-lock.json and/or yarn.lock

What npmtt will do:
 - look for package-lock.json or yarn.lock files
 - remove the `resolved` and `integrity` fields from the file
 - save the file

npmtt will abort if:
 - the package-json.lock file format is not correct

npmtt will NOT abort if:
 - the package-json.lock file and/or yarn.lock does not exist

Typical usage, if you want to remove the fields:

  npmtt remove


Looks at all the .js files in the current git repo and adds/updates a standard copyright notice to the top. The exact wording of the copyright statement is based on the license declared in package.json, your git author details, and the first and last commits made to a file (years only).