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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0157844163db7a2daf4912c20ecedcc54641a158224c4270b645a481b45c90ec
|
|
| MD5 |
b5e44534f7a00edbc68ad0882c9d7a0f
|
|
| BLAKE2b-256 |
0171dfd10809e9f97821e49bebec06a97337c85a37fa1cab6cf6c20ca2b385fe
|
Provenance
The following attestation bundles were made for plockalyser-0.0.1.tar.gz:
Publisher:
pypi_publish.yml on rikardg/plockalyser
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
plockalyser-0.0.1.tar.gz -
Subject digest:
0157844163db7a2daf4912c20ecedcc54641a158224c4270b645a481b45c90ec - Sigstore transparency entry: 226978019
- Sigstore integration time:
-
Permalink:
rikardg/plockalyser@13f1289ed0b5cd8fc14be2cadeed707c142daf06 -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/rikardg
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi_publish.yml@13f1289ed0b5cd8fc14be2cadeed707c142daf06 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79f35dfe89646d41b3b72a8bc4edd24131d33288c887f25ccd5e11f25f81e08f
|
|
| MD5 |
a15eccabb9a3e90f57562cf5f50f5708
|
|
| BLAKE2b-256 |
ee7b068df7c1eb59f559c3aaf009d53b0c527cdd7ca14d126525cd072ecbb6b2
|
Provenance
The following attestation bundles were made for plockalyser-0.0.1-py3-none-any.whl:
Publisher:
pypi_publish.yml on rikardg/plockalyser
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
plockalyser-0.0.1-py3-none-any.whl -
Subject digest:
79f35dfe89646d41b3b72a8bc4edd24131d33288c887f25ccd5e11f25f81e08f - Sigstore transparency entry: 226978020
- Sigstore integration time:
-
Permalink:
rikardg/plockalyser@13f1289ed0b5cd8fc14be2cadeed707c142daf06 -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/rikardg
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi_publish.yml@13f1289ed0b5cd8fc14be2cadeed707c142daf06 -
Trigger Event:
push
-
Statement type: