#npm #package-lock #json #linter #channel #secure #analysis

app package-lock-lint

linter for npm's package-lock.json

8 releases

0.2.5 May 21, 2024
0.2.4 Feb 5, 2024
0.2.3 Oct 7, 2022
0.2.2 Jan 15, 2022
0.1.1 May 21, 2021

#317 in Development tools

Download history 2/week @ 2024-03-11 8/week @ 2024-04-01 154/week @ 2024-05-20

453 downloads per month

GPL-3.0-or-later

18KB
199 lines

package-lock-lint

A tool to lint npm's package-lock.json files at a basic level since they're impossible to review manually.

$ package-lock-lint /my/package-lock.json

Current checks:

  • Matches overall schema
  • Dependencies resolve to valid URLs (catches T278857)
  • Dependencies are downloaded over secure channels (HTTPS or SSH)
  • Package - is not depended upon (typo)

See T242058: Add some form of static analysis for package-lock.json for discussion and inspiration that let to this tool.

(C) 2021 Kunal Mehta, under the GPL v3 or any later version.

Dependencies

~1.6–2.7MB
~79K SLoC