A previous release had provenance metadata, but this release does not. View details.
codelaw
A linter and formatter whose rules are Markdown files — for JavaScript, TypeScript, Python, JSON, YAML, TOML, Markdown, CSS and HTML, alone or mixed.
One engine, two registries, identical output. The same native binary ships
as codelaw on npm and on PyPI; neither needs the other.
Install
| your repo | engine | rules for its languages |
|---|---|---|
| Node | npm i -D codelaw |
npx codelaw init adds the @codelaw/rules-* packs |
| Python | uv add --dev codelaw or pip install codelaw |
codelaw init adds the codelaw-rules-* packs |
codelaw installed alone lints nothing until a rule pack is installed — it
says so (codelaw/no-rules).
Rule packs — each registry carries the packs its users install:
| registry | named | packs |
|---|---|---|
| npm | @codelaw/rules-<name> |
js · ts · react · node · stencil · html · css · data · tanstack-query · redux-toolkit |
| PyPI | codelaw-rules-<name> |
js · react · html · css · python · data |
Use
codelaw check # lint the project
codelaw fix # apply the safe fixes
codelaw check --format json
Programmatic API — runs the bundled binary and returns its JSON report:
import { check, fix, format, rulesFor } from "codelaw";
const report = check(["src"]);
const rules = rulesFor("src/app.ts");
import codelaw
report = codelaw.check(["src"])
rules = codelaw.rules_for("app/main.py")
| npm | Python | what it returns |
|---|---|---|
check(paths, options) |
check(paths, …) |
codelaw check --format json |
fix(paths, options) |
fix(paths, …) |
codelaw fix --format json; unsafe, dryRun / dry_run |
format(paths, options) |
format(paths, …) |
codelaw format --format json; check writes nothing |
rulesFor(path) |
rules_for(path) |
the rules that apply to one file, as codelaw rules --for lists them |
binaryPath(), platformKey() |
binary_path() |
the bundled binary, and the platform key it was chosen by |
Platforms
macOS arm64 and x64 · Linux x64 and arm64, glibc and musl · Windows x64 and arm64. Any other platform fails with an error naming these — codelaw never compiles from source at install time.
Licence
Metadata
Release files for codelaw 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Loss of provenance
These files do not have provenance metadata, despite files in a prior release including this data.
We recommend further investigation before installing these files. View details.
Built distributions (wheels)
Total release size: 84.1 MB
Release files / codelaw-0.2.0-py3-none-win_arm64.whl
Loss of provenance
This file belongs to a release without provenance metadata, despite a prior release including this data.
We recommend further investigation before installing this file. View details.
| Download URL | codelaw-0.2.0-py3-none-win_arm64.whl |
|---|---|
| Size | 10.4 MB |
| Tags | Python 3 Windows ARM64 |
|
SHA-256 checksum How to use checksums |
c00e1f93664878ab0007bb9a5e9ce09565fbe7acbe478782d19b5946fdaa6399
|
|
BLAKE2b-256 checksum How to use checksums |
85ff4959b6c6e8c667b635eab54b5adb50ebfb1b7af7fa4aab97f6fec7c1d8f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Release files / codelaw-0.2.0-py3-none-win_amd64.whl
Loss of provenance
This file belongs to a release without provenance metadata, despite a prior release including this data.
We recommend further investigation before installing this file. View details.
| Download URL | codelaw-0.2.0-py3-none-win_amd64.whl |
|---|---|
| Size | 11.1 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
b5e29ec274d3010c2ff6ff55e05cbd88bea5c0d9dac4e6ac7ba841acb0714641
|
|
BLAKE2b-256 checksum How to use checksums |
4a1fa6a3d2240725a6000014f5b9e47592be8cb27b4ec2337e7a89c08f093f1c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Release files / codelaw-0.2.0-py3-none-musllinux_1_2_x86_64.whl
Loss of provenance
This file belongs to a release without provenance metadata, despite a prior release including this data.
We recommend further investigation before installing this file. View details.
| Download URL | codelaw-0.2.0-py3-none-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 10.8 MB |
| Tags | Linux musl 1.2+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
893fdd10ed390af362166c2f43b82bbe5f34f4bc5ab1d55ecaff4c4db3f637e7
|
|
BLAKE2b-256 checksum How to use checksums |
eb29c6b7dff219445e6547e103329eae029d98d238f8638f02b9519368ed612d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Release files / codelaw-0.2.0-py3-none-musllinux_1_2_aarch64.whl
Loss of provenance
This file belongs to a release without provenance metadata, despite a prior release including this data.
We recommend further investigation before installing this file. View details.
| Download URL | codelaw-0.2.0-py3-none-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 10.1 MB |
| Tags | Linux musl 1.2+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
5172f55aa6533a565dd96213b9da8e28f50148705d09020ee260614ce9eda151
|
|
BLAKE2b-256 checksum How to use checksums |
fc1ade620bec3c8d9f4fcf3fd1c6f5b13d358de71b249f9a41d22eded237f678
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Release files / codelaw-0.2.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Loss of provenance
This file belongs to a release without provenance metadata, despite a prior release including this data.
We recommend further investigation before installing this file. View details.
| Download URL | codelaw-0.2.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 10.8 MB |
| Tags | Linux glibc 2.17+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
8b62094629c91367b2394e4649b5eb89404facd024ac1ff21b3d8c77956ade71
|
|
BLAKE2b-256 checksum How to use checksums |
5bcd4c5334f7c7fb526d89661fbd1d27d982963a537a8137dece051f3f09314f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Release files / codelaw-0.2.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Loss of provenance
This file belongs to a release without provenance metadata, despite a prior release including this data.
We recommend further investigation before installing this file. View details.
| Download URL | codelaw-0.2.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 10.1 MB |
| Tags | Linux glibc 2.17+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
083324db9a51cdeba6391ce709079f4ff2c572a25df00addaed6ea0bfacb4666
|
|
BLAKE2b-256 checksum How to use checksums |
29b9c569dedc6d3c65fe5dae743deb42bca200634ee7c860c5c32b5a8a7bd4ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Release files / codelaw-0.2.0-py3-none-macosx_11_0_arm64.whl
Loss of provenance
This file belongs to a release without provenance metadata, despite a prior release including this data.
We recommend further investigation before installing this file. View details.
| Download URL | codelaw-0.2.0-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 10.1 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
cb5426e9c6ac2de92ae6d26c60508c1cea12f6935f4f0c8f4eda4400d4ea5919
|
|
BLAKE2b-256 checksum How to use checksums |
21fe9a8f5bd814b29d36e90368bb3965d59f10abce91cef2e4de790ecb91aa12
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Release files / codelaw-0.2.0-py3-none-macosx_10_12_x86_64.whl
Loss of provenance
This file belongs to a release without provenance metadata, despite a prior release including this data.
We recommend further investigation before installing this file. View details.
| Download URL | codelaw-0.2.0-py3-none-macosx_10_12_x86_64.whl |
|---|---|
| Size | 10.6 MB |
| Tags | Python 3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
e3deadc0bf0f6153b1b039d2e39f74a98460b32a010b028439e90328938d5277
|
|
BLAKE2b-256 checksum How to use checksums |
c6d8fa7624b8b5e954985872f16144be934ea9a39748209c2c0677b7b20f2c1f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Security for codelaw 0.2.0
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.
Loss of provenance
A previous release of these files had provenance metadata, but this release does not.
While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.
Release comparison
- Removed 0.3.0 8 files With provenance
- Added 0.2.0 8 files Without provenance
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.