actions-npm-dependencies

Validate your NPM dependencies without installing Node (WIP)

How to get a health report for your package.json?

deno run \
    --allow-net=unpkg.com --allow-read=. \
    https://deno.land/x/package_health/src/main.ts \
    ./package.json  \
    --cache

Note

  • The --cache flag should help with speedups
  • The --verbose flag is very verbose

Todo

  • Make it functional and composable
  • Handle peer dependencies
  • Handle lock files? (probably not)
  • Great error messaging
  • Investigate direct dependencies of dependencies, which may have peers themselves
  • Give insight into possible resolution steps, including intersects

Shapes

All sourced from Geometric Shapes and Box-drawing characters on Wikipedia.

┌─┬┐  ╔═╦╗  ╓─╥╖  ╒═╤╕
│ ││  ║ ║║  ║ ║║  │ ││
├─┼┤  ╠═╬╣  ╟─╫╢  ╞═╪╡
└─┴┘  ╚═╩╝  ╙─╨╜  ╘═╧╛
╭─────────╮
│ ○ △ □ × │
╰─────────╯