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

gluestack-icon-generator

v1.3.2

Published

Generate React Native SVG icon components from Iconify collections for Gluestack-UI v2

Downloads

362

Readme

🔥 Gluestack Icon Generator

npm version Node Version CLI Tool

Generate your favorite icons into Gluestack-v2 components with a single command! This CLI tool makes it effortless to generate icon components from any Iconify collection.

✨ Features

  • 🚀 Interactive CLI interface
  • 💎 Generates React Native SVG components
  • 🛠️ Compatible with Gluestack-UI v2
  • 📦 Optimized component output

📺 Demo

🚀 Installation

Install globally using your preferred package manager:

npm

npm install -g gluestack-icon-generator

yarn

yarn global add gluestack-icon-generator

pnpm

pnpm add -g gluestack-icon-generator

bun

bun add -g gluestack-icon-generator

📖 Usage

Use gluestack-icon-generator or shortcut gicongen with command generate or shortcut g.

1. Interactive Mode

gicongen generate

or

gicongen g

Follow the interactive prompts to select your icon collection and icons.

2. Command Line Mode

gicongen generate --collection mdi --icons "home, bell, map" --output src/components/ui/icon

or

gicongen g -c mdi -i "home, bell, map" -o src/components/ui/icon

This command will generate the icons home, bell, and map from the mdi collection and save them in the src/components/ui/icon directory.

Options

  • -c, --collection: Icon collection name (e.g., mdi)
  • -i, --icons: Comma-separated icon names
  • -o, --output: Custom output directory (default: src/components/ui/icon)

🎯 Example

// Generated icon component
import React from 'react';
import {Path, Svg} from 'react-native-svg';
import {createIcon} from '@gluestack-ui/icon';

const HomeIcon = createIcon({
  Root: Svg,
  viewBox: '0 0 24 24',
  path: (
    <>
      <Path
        d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"
        fill="currentColor"
        />
    </>
  ),
});

HomeIcon.displayName = 'HomeIcon';

export default HomeIcon;

🤝 Contributing

Contributions are welcome! Feel free to submit issues and pull requests.