Skip to main content

Utility for performing rudimentary analysis on npm package dependencies from an npm lock file.

Project description

plockalyser

"package lock analyser"

Utility for performing rudimentary analysis on npm package dependencies from an npm lock file.

Prepare data

Get data from package-lock.json in your project:

npm ls --all --json > npm_ls.json

or if you want to exclude the dev dependencies:

npm ls --all --omit-dev --json > npm_ls_nodev.json

Copy the file to the plockalyser directory.

Running

Bootstrap

plockalyser uses uv for managing dependencies; it can be installed e.g. with pipx install uv. Regular pip might also work, but YMMV.

Setting up:

uv sync

Command line arguments:

./plockalyser.py --help

Produce Markdown tables with some basic data, output to stdout:

./plockalyser.py npm_ls.json --tables

The tables are suitable for processing with Pandoc, and are marked up for inclusion using the pandoc-include filter (optional). Run pipx install pandoc-include if you want to install the filter.

The tables also have line numbers in LaTeX margin notes. Add the following somewhere in your LaTeX setup (e.g. in a file included with pandoc -H):

% Margin notes
\usepackage{marginnote}
\renewcommand{\marginpar}{\marginnote}
\reversemarginpar % Moves margin notes to the left margin
\usepackage{ragged2e} % Allows right-aligned text

Bygg

The project includes a set of targets for the Bygg build system. Here, it is only used as a simple taskrunner with some rudimentary dependency management.

To install:

pipx install bygg

To run:

bygg

builds the default target. See Byggfile.toml for what the default target is and the other actions that are available.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

plockalyser-0.0.1.tar.gz (52.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

plockalyser-0.0.1-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file plockalyser-0.0.1.tar.gz.

File metadata

  • Download URL: plockalyser-0.0.1.tar.gz
  • Upload date:
  • Size: 52.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for plockalyser-0.0.1.tar.gz
Algorithm Hash digest
SHA256 0157844163db7a2daf4912c20ecedcc54641a158224c4270b645a481b45c90ec
MD5 b5e44534f7a00edbc68ad0882c9d7a0f
BLAKE2b-256 0171dfd10809e9f97821e49bebec06a97337c85a37fa1cab6cf6c20ca2b385fe

See more details on using hashes here.

Provenance

The following attestation bundles were made for plockalyser-0.0.1.tar.gz:

Publisher: pypi_publish.yml on rikardg/plockalyser

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file plockalyser-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: plockalyser-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for plockalyser-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 79f35dfe89646d41b3b72a8bc4edd24131d33288c887f25ccd5e11f25f81e08f
MD5 a15eccabb9a3e90f57562cf5f50f5708
BLAKE2b-256 ee7b068df7c1eb59f559c3aaf009d53b0c527cdd7ca14d126525cd072ecbb6b2

See more details on using hashes here.

Provenance

The following attestation bundles were made for plockalyser-0.0.1-py3-none-any.whl:

Publisher: pypi_publish.yml on rikardg/plockalyser

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page