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

mdbadges-cli

v5.5.2

Published

An extensive CLI tool to find Shields.io badges without needing to leaving the terminal.

Downloads

388

Readme

mdbadges-cli

Release NPM Downloads License

mdbadges-cli is an extensive CLI tool to find over 400+ Shields.io badges for your projects without needing to leaving the terminal, with multiple commands for different purposes.

Installation

npm install -g mdbadges-cli # Node 18 is required.

Release Tests

Getting Started

To start using a command, add the mdb prefix, followed by the command name/syntax.

For example:

mdb social discord

# Badge found:
# [![Discord](https://img.shields.io/badge/Discord-%235865F2.svg?&logo=discord&logoColor=white)](#)

If you want to use a prefix, such as --style, you can run the same command with the prefix after it (prefixes have -- or - before them).

For example:

mdb social discord --style plastic

# Badge found:
# [![Discord](https://img.shields.io/badge/Discord-%235865F2.svg?&logo=discord&logoColor=white&style=plastic)](#)

[!TIP] If you're running mdbadges-cli in Visual Studio Code, try installing the Image Preview extension. You can hover over the badge link to see a preview of it. See an example here.

For help information, such as what commands do and/or accept, run mdb help / mdb -h in the terminal. Alternatively, you can read the documentation here.

Commands

| Command | Description | Aliases | Additional Information | |----------|-----------|---------------------------|--------| mdb <category> <badgeName> | Displays Markdown for specified badge in a category | N/A | Prefixes available include: --style / -s, --html, --jsx / --tsx, and --link. Finding more than one badge is supported. mdb search | Displays badges available in a category | s, find | Use arrow keys to scroll up/down. mdb lookup <keyword> | Displays badges containing a certain keyword. | l | Also displays what category the badge is in, and clicking ENTER on a badge will give you the badge code. mdb create | Displays prompts to create your own badge | generate | Only hexadecimal colors (e.g #000, #FFFFFF) are supported. mdb random | Displays a random badge. | r | Supports both Markdown and HTML formats. Supports specific categories using --category or -c. mdb copy <category> <badgeName> | Copies a badges' code to the clipboard | c | On Windows 11, you can do ⊞ + V to verify it's been copied. mdb badges | Opens a link to the badge list in your browser. | list | Both links will be displayed after a few seconds, in case it does not open in your (default) browser. mdb add <category> <badgeName> <fileName> | Allows you to add a badge to a Markdown file | N/A | Only .md files are supported. Will work in subdirectories, so long as the file path is correct.

Miscellaneous Commands

| Command | Description | Aliases | Additional Information | |----------|-----------|---------------------------|--------| mdb version | Displays the current version you are on | v | This command is not for updating, this simply outputs your version. To update, see below. mdb update | Automatically updates the package | upd, u | Will notify you of major bumps, and also prompts you if you'd like to update first. mdb fund | Displays funding/donation links for the package | N/A | You don't have to donate, but I'd appreciate it! mdb about | Displays general information about the package | abt | Also shows links to the website, GitHub issues, contributing, and more. mdb documentation | Opens a link to the documentation in your browser. | docs | Again, the link will be displayed after a few seconds, in case it does not open in your (default) browser. mdb changelog | Opens a link to the latest release with it's changelogs in your browser. | release | Once again, the link will be displayed after a few seconds, in case it does not open in your (default) browser.

Available Categories

Below you'll find categories that are currently available, with the name and syntax needed in the <category> field of certain commands.

| Name | Syntax | |---------|---------------| App Store | app-store Artificial Intelligence | ai Blog | blog Browser | browser Code Coverage | code-coverage Code Editor | code-editor Cloud | cloud Collaboration | collaboration Crypto | crypto Database | database Design | design Delivery | delivery Documentation | documentation Education | education Funding | funding Framework | framework Game Engine | game-engine Gaming Storefront | game-stores Jobs | jobs Office | office Operating System | os Package Manager | package-manager Payment | payment Programming Language | programming Restaurant | restaurant Review | review Search Engine | search-engine Social Media | social Sound | sound Static Site | static-site Storage | storage Video Streaming | video-streaming Virtual Reality | vr

Contributing

There are multiple ways to contribute and improve this package.

Read the full contributing guidelines here.

ko-fi

© 2024 · MIT License