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

readmelinks

v0.2.1

Published

Helper tool to find all nested README.md files, generate links to them and insert those links to the root README.md

Readme

readmelinks

TL;DR

Install

npm i -D readmelinks

or

yarn add readmelinks -D

First run

yarn readmelinks

or

node_modules/.bin/readmelinks

Check generated configuration in the package.json

Overview

A simple tool which does two things

  • finds all *.md files across the project (<root>/src is default folder for search)
  • inserts links of found files into the README.md in the root of the project

No extra dependencies

readmelinks uses only Nodejs API.

Although it is written in typescript and tested with Jest, in the end you are using a pure Javascript tool without any 3-rd party dependencies and thus unexpected surprises.

Configuration

First run of node_modules/.bin/readmelinks inserts default configuration and script into package.json.

// package.json
{
  ...
  "scripts": {
    ...
    "readmelinks": "readmelinks"
  },
  ...    
  "readmelinks": {
    "srcRoot": "src",
    "commentMark": "readmelinks-generator",
    "regexp": "\\.md$"
  }
}

Then you can run the tool with a short command

npm run readmelinks

Multiple configurations

You can define an array of configurations this way

// package.json
{
  ...
  "scripts": {
    ...
    "readmelinks": "readmelinks"
  },
  ...    
  "readmelinks": [
    {
      "srcRoot": "src",
      "commentMark": "readmelinks-generator",
      "regexp": "\\.md$"
    }, 
    {
      "srcRoot": "assets",
      "commentMark": "readmelinks-svg-generator",
      "regexp": "\\.svg$"
    }  
  ]
}

Configuration params

srcRoot

Relative path to the search folder

Example:

Name of the project folder = foo

Name of the search folder = app

Absolute path to search folder = ~/project/foo/src/app

Config value to use = "srcRoot": "src/app"

commentMark

Name of the comment placeholder, which readmelinks uses to find the location for generated content.

Example:

"commentMark": "readmelinks-generator"

First time readmelinks is executed it inserts two comment lines in the end of README.md unless those comment lines are already present. The generated list of links will be put between them.

<!-- readmelinks-generator-begin -->
... generated content is updated here every time readmelinks is executed
<!-- readmelinks-generator-end -->

You can move those two lines wherever you want in README.md

regexp

This attribute is required and expects a valid Regexp string, so new Regexp(regexp) should not throw an error.

Examples:

regexp: "\\.png$"

showFileName

Optional parameter with boolean type. If set to true then the link name will contain the name of the file

Examples

showFileName: false

* [components/Pagination/docs](docs/Pagination.md)
showFileName: true

* [components/Pagination/docs/Pagination.md](docs/Pagination.md)