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 🙏

© 2025 – Pkg Stats / Ryan Hefner

mdnman

v2.1.1

Published

Command line interface for the MDN Web Docs

Downloads

71

Readme

MDNMan

JavaScript reference CLI made possible by MDN Web Docs.

The goal of MDN Man is to create an easy way for the MDN Web Docs to be displayed in other formats such as the command line and Discord/Slack bots. The repository features a build in command line interface as well as a number of functions that can be used to query, parse and display content from the MDN Web Docs.

Documentation

View the official documentation at thenlie.github.io/mdnman/

Installation

When using mdnman within a JavaScript or TypeScript project, install locally via NPM.

npm install mdnman

If you would like access to the CLI at all times in your terminal, install globally via NPM.

npm install --global mdnman

Usage

Command Line Interface

At it's core, mdnman is a command line interface for the MDN Web Docs. It is intended to be a quick, non-network dependent resource for web developers.

Commands

| Command | Arguments | Description | |-------------|------------------|----------------------------------| | interactive | query (string) | Query MDN docs via prompts | | js | query (string) | Query MDN JavaScript reference | | html | query (string) | Query MDN HTML reference | | css | query (string) | Query MDN CSS reference | | glossary | query (string) | Query MDN Glossary | | help | command (string) | Get help for a specific command |

Options

| Option | Flag | Description | Default | Values | |---------|---------------|----------------------------------------------------|---------|---------------------------| | Help | -h, --help | Get help for a given command | N/A | Any command | | Output | -o, --output | Specify where the output of the command should go | stdout | stdout, vim, pager, file | | Section | -s, --section | Specify a single section of the document to return | none | Any section heading |

Examples

mdnman --help
mdnman js map
mdnman js --output vim --section parameters splice

Node Package Manager

You can also install mdnman through npm to utilize it in your own project. The mdnman package comes with built in TypeScript support and exposes all utility methods built in to the CLI.

Quick Start

import { getMDNDoc, printDoc } from "mdnman";

const doc = await getMDNDoc('javascript', 'map')
if (doc) {
    printDoc(completeParse(doc));
}

Credits

This project would not be possible without the incredible work done by the Mozilla Team on the MDN Web Docs.

github-profile

Questions?

If you have any questions about the project you can reach out to me via email or GitHub with the information below.

Email: [email protected] GitHub: Thenlie