mdbadges-cli

5.5.1 • Public • Published

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.

There's a number of features available, including:

  • A wide range of over 400+ badges
  • 30+ categories to search between
  • Markdown and HTML support for most commands
  • Aliases for many commands
  • Custom badges just by using simple prompts
  • Random badge generation
  • and more... 💎

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.

  • New Features - Features/Improvements which improve user experience.
  • Adding Badges - New badges to be added to the already large list of badges.
  • Questions - Questions about the package, which can spiral into new features/improvements/suggestions.
  • Bugs/Inconsistencies - Issues within the package or something that doesn't look right.

ko-fi

© 2024 · MIT License

Package Sidebar

Install

npm i mdbadges-cli

Homepage

mdbcli.xyz

Weekly Downloads

129

Version

5.5.1

License

MIT

Unpacked Size

116 kB

Total Files

17

Last publish

Collaborators

  • intter