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

express-readme

v0.0.5

Published

Serve your README as GitHub would do within Express 4.

Readme

Express README

Serve your README as GitHub would do within your Express 4 app.

Usage

Call it with your Express app:

// Create an Express app
var app = require('express')();

// Serve README.md on GET '/'
require('express-readme')(app);

Options

You can pass three options:

  • filename: The path to the README you want to serve. Can be relative or absolute.
  • routes: The routes the package should respond to. Can be a string or array of routes.
  • processorOpts: If you know the processor used for your markup and want to customize the output it produces (i.e. the package), then pass this with the desired options.
// Create an Express app
var app = require('express')();

// Serve SAMPLE.md on GET '/' and GET '/readme'
require('express-readme')(app, {
  filename: 'SAMPLE.md',
  routes: ['/', '/readme']
});

Markup support

For now, the package only supports following markup formats:

  • Markdown (.markdown, .mdown, .mkdn, .md)
  • Textile (.textile)
  • AsciiDoc (.asciidoc, .adoc, .asc)

Other formats will be added as well, to make it match with the others that you can use with GitHub.

Warnings

There are some limitations when using this package, which include:

  • If a relative path was passed to filename, it will be resolved from the process current directory.
  • If the README was not found, a simple 404 is sent back.
  • If the markup for your README isn't implemented, an error will be thrown.
  • The operations are performed in a synchronous way.

TODO

  • Support other formats to emulate GitHub's true README rendering.
  • Implement asynchronous operations whenever possible.
  • Test with older Express versions.

License

This project is released under the MIT License.