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 🙏

© 2024 – Pkg Stats / Ryan Hefner

mdnman

v1.1.8

Published

Command line interface for the MDN Web Docs

Downloads

663

Readme

MDNMan

JavaScript reference CLI made possible by MDN Web Docs.

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 | |---------|------------------|------------------------------------| | js | query (string) | Query the MDN JavaScript reference | | html | query (string) | Query the MDN HTML reference | | css | query (string) | Query the MDN CSS reference | | help | command (string) | Get help for a specific command |

Options

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

Examples

mdnman --help
mdnman js map
mdnman --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/dist";

const doc = await getMDNDoc('javascript', 'map')
if (doc) {
    printDoc(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