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

@adguard/changelog-tools

v0.0.1

Published

Tools for working with changelogs

Readme

Changelog Tools

Tools for working with changelogs in Keep a Changelog format.

⚠️ Development Status: This library is currently under active development and provides limited functionality. We plan to extend it with additional features as needed.

API Stability: The API may change at any time with new releases until we reach version 1.0. A stable 1.0 release is planned for the far future.

Features

  • 📝 Extract specific version content from CHANGELOG.md files
  • 🔍 Supports both plain (## 1.0.0) and bracketed (## [1.0.0]) version formats
  • 🔗 Handles markdown links and reference-style links
  • 🛠️ Available as both CLI tool and programmatic API

Installation

npm install @adguard/changelog-tools
# or
pnpm add @adguard/changelog-tools
# or
yarn add @adguard/changelog-tools

CLI Usage

Extract a version from changelog

# Extract version from CHANGELOG.md in current directory
changelog-tools --extract-version 1.0.0

# or using short flag
changelog-tools -e 1.0.0

# Specify custom changelog file
changelog-tools -e 1.0.0 --input path/to/CHANGELOG.md

# With custom fallback text if version not found
changelog-tools -e 1.0.0 --fallback "No release notes available"

Show version

changelog-tools --version

Programmatic Usage

import { extractRelease } from '@adguard/changelog-tools/lib';
import { readFile } from 'node:fs/promises';
import { unified } from 'unified';
import remarkParse from 'remark-parse';
import remarkStringify from 'remark-stringify';
import remarkInlineLinks from 'remark-inline-links';

// Read and process changelog
const output = await unified()
    .use(remarkParse)
    .use(remarkInlineLinks)
    .use(extractRelease, '1.0.0', { 
        fallback: 'No release notes found' 
    })
    .use(remarkStringify, { bullet: '-' })
    .process(await readFile('CHANGELOG.md'));

console.log(output.toString());

Supported Changelog Formats

The extractor supports various heading formats:

## 1.0.0
## 1.0.0 - 2024-01-01
## 1.0.0 (2024-01-01)
## [1.0.0]
## [1.0.0] (prerelease) - 2024-01-01
## [1.0.0](https://github.com/example/releases/v1.0.0)

API

extractRelease(version, options?)

Extracts content for a specific version from a changelog AST.

Parameters:

  • version (string): Version number to extract (e.g., '1.0.0')
  • options (object, optional):
    • fallback (string): Text to return if version is not found

Returns: Transformer function for use with unified/remark

Development

# Install dependencies
pnpm install

# Run tests
pnpm test

# Run tests with coverage
pnpm coverage

# Build
pnpm build

# Lint
pnpm lint

License

MIT

Links