Socket
Socket
Sign inDemoInstall

mdi-cli

Package Overview
Dependencies
194
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    mdi-cli

Generate material design icons from the command line


Version published
Weekly downloads
2
decreased by-77.78%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

mdi-cli icon

mdi-cli

Generate material design icons from the command line.

All icons are based on the @mdi/svg package, which is what materialdesignicons.com uses.

Installation

mdi-cli can be installed using npm by running:

$ npm install -g mdi-cli

Usage

Installing this package globally will give you the mdi command. The GIF below shows how to use it interactively:

Usage Example

You may also use mdi non-interactively, by providing flags and arguments when you run it:

$ mdi --help

  Generate material design icons from the command line

  Usage:
    $ mdi [options] <icon-name>, <icon-name>, ...

  Options:
    --size, -s         Set the icon size. Defaults to 24px.
    --padding, -p      Set the icon padding. Defaults to 0px.
    --radius, -r       Set the icon border radius. Defaults to 0px.
    --foreground, -f   Set the icon foreground color. Defaults to #333.
    --background, -b   Set the icon background color. Defaults to transparent.
    --output, -o       Write icons to this directory. Defaults to the current directory.

  Examples:
    $ mdi -s 32 -p 4 -r 5 -f yellow -b black google youtube twitter

Why did I build this?

materialdesignicons.com is cool, I like using it because

  1. I can see what the actual icons look like
  2. I can easily resize and set padding of the icon and see the results

However, I usually get several icons with the same styles at the same time, and doing so always takes so much time.

This tool allows:

  1. Generating multiple icons with the same style
  2. Generating icons even when you're offline

However, this also comes with its own limitations:

  1. No icon preview while generating, so you kinda have to know the names of the icons that you need
  • mdi-core: Node module for generating Material Design icons.

License

MIT License

Keywords

FAQs

Last updated on 12 Nov 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc