npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@ferrow/conventional-changelog-lite

v1.0.0

Published

Parse Conventional Commits from raw git log text and render a CHANGELOG.md section with a suggested semver bump — zero runtime dependencies.

Downloads

104

Readme

conventional-changelog-lite

CI

Parse Conventional Commits from raw git log text and render a CHANGELOG.md section with a suggested semver bump. Strict TypeScript, zero runtime dependencies.

Why

Most changelog generators want to shell out to git themselves. This one doesn't — you supply the log text (from whatever git command, CI log artifact, or file you like), and it hands back structured commits, grouped sections, and a bump suggestion. That keeps it usable in sandboxes, CI systems without a git binary, and anywhere else you don't want a library running child processes on your behalf.

Quickstart

import { parseCommits, suggestBump, renderChangelog, gitLogCommand } from "conventional-changelog-lite";
import { execSync } from "node:child_process";

const logText = execSync(gitLogCommand()).toString();
const commits = parseCommits(logText);

console.log(suggestBump(commits)); // "major" | "minor" | "patch" | "none"

console.log(
  renderChangelog(commits, {
    version: "2.0.0",
    repo: "your-org/your-repo",
    previousVersion: "1.4.0",
  })
);

API

gitLogCommand(): string

Returns the exact git log command this parser expects as input: git log --pretty=format:'commit %H%n%B%n===END==='. The parser also tolerates plain git log --pretty=%B output and default git log output as fallbacks.

parseCommits(logText: string): ParsedCommit[]

Splits log text into commit records and parses each as a Conventional Commit. Non-conforming commits are returned with type: "other" rather than dropped.

groupByType(commits): Record<CommitType, ParsedCommit[]>

Buckets parsed commits by type.

suggestBump(commits): "major" | "minor" | "patch" | "none"

Any breaking change → "major". Else any feat"minor". Else any fix/perf"patch". Else "none".

renderChangelog(commits, options): string

Renders a markdown changelog section. options.repo + options.previousVersion add a GitHub compare link to the heading and commit links.

Types

ParsedCommit, CommitType, SemverBump, RenderOptions — all exported.

Limits

  • Text-based parsing only — it does not run git for you and cannot validate that the log text is complete or well-formed.
  • The default marker-based split (===END===) is the most reliable format; plain git log output without markers is parsed best-effort.
  • Scope detection assumes the standard type(scope): subject header shape; unusual header formats fall back to type: "other".

Part of the ferrow-toolkit collection · Sponsored by Ferrow