Skip to main content

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.

Metadata

Release files for plockalyser 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for plockalyser 0.0.1
File Size Uploaded Provenance Actions
plockalyser-0.0.1.tar.gz 52.7 kB With provenance Details for plockalyser-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for plockalyser 0.0.1
File Interpreter ABI Platform Actions
plockalyser-0.0.1-py3-none-any.whl Python 3 none any Details for plockalyser-0.0.1-py3-none-any.whl

Total release size: 62.6 kB

Release files / plockalyser-0.0.1.tar.gz

Download URL plockalyser-0.0.1.tar.gz
Size 52.7 kB
Tags Source
SHA-256 checksum
How to use checksums
0157844163db7a2daf4912c20ecedcc54641a158224c4270b645a481b45c90ec
BLAKE2b-256 checksum
How to use checksums
0171dfd10809e9f97821e49bebec06a97337c85a37fa1cab6cf6c20ca2b385fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.0.1 CPython/3.12.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 1, 2025.

Transparency log

Release files / plockalyser-0.0.1-py3-none-any.whl

Download URL plockalyser-0.0.1-py3-none-any.whl
Size 9.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
79f35dfe89646d41b3b72a8bc4edd24131d33288c887f25ccd5e11f25f81e08f
BLAKE2b-256 checksum
How to use checksums
ee7b068df7c1eb59f559c3aaf009d53b0c527cdd7ca14d126525cd072ecbb6b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.0.1 CPython/3.12.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 1, 2025.

Transparency log

Security for plockalyser 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for plockalyser-0.0.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 1, 2025.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page