Validate conventional commit subjects with a tiny configurable rule set and a documented programmatic API.
Package: @theworker02/commitlint-lite · Site: GitHub Pages · Source: theworker02/commitlint-lite
deno add jsr:@theworker02/commitlint-liteimport { lint, lintMany, DEFAULT_TYPES } from "@theworker02/commitlint-lite";
console.log(lint("feat(parser): add scanner"));
console.log(lintMany(["fix: correct bug", "WIP"]));
console.log(DEFAULT_TYPES);lint(message, options)— lint one commit message.lintMany(messages, options)— lint a collection.lintFile(path, options)— read and lint a commit-message file.lastGitCommit(cwd)— read the latest Git commit message.subjectFrom(text)— extract the subject line.patternFor(types)— build the validation expression.DEFAULT_TYPES,PACKAGE,LintOptions,LintResult— documented symbols and types.
git clone https://github.com/theworker02/commitlint-lite.git
cd commitlint-lite
node src/cli.js "feat: initial release"node --testThe canonical public package is JSR @theworker02/commitlint-lite, published through GitHub Actions trusted publishing.
MIT © 2026 theworker02
