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

moblee-icons

v1.0.6

Published

mobLee UI components

Downloads

15

Readme

mobLee-icons

Usage

Install

yarn add moblee-icons

Import

import MenuIcon from 'moblee-icons/Menu';

Render

<Menu />

Creating a new icon

Suppose your icon is going to be called myIcon.

  1. Get the SVG file for your custom icon and make sure it measures 24x24px;
  2. Inside src create a new file myIcon.js;
  3. As a template, copy the content of src/Pin.js to your new file and replace all instances of Pin to myIcon;
  4. Open the your SVG file using a text editor and look for the <path> tag, copy the content of it's d attribute. This string describes de shape of the icon;
  5. Inside myIcon.js replace d content with the string you copied from the original SVG;
  6. ⚠️ You will probably need to break lines inside d, to do so, follow this rule: Enter new lines before letters, commas or spaces (a-Z, , or ), NEVER split numbers and dots (0-9 and .). Pin.js is a good example;
  7. Open src/index.js and add the export: export { default as myIcon } from './myIcon';. Then sort lines (on Atom use: ⌘+⇧+P > "Sort Lines: Sort");
  8. Lastly, to update the storybook open stories/mobleeIcons.js and add 'myIcon', to the array. (in alphabetical order!)

That's it!! 🎉

You can now check out your brand new icon on the storybook! 😃

Contribute

  1. Clone the repo: git clone [email protected]:mobLee/icons
  2. Cd into the directory: cd icons
  3. Install the dependencies: yarn
  4. Open a new branch: git checkout -b feature-nyan-cat
  5. Develop using the storybook: yarn storybook
  6. Commit your changes: git add -A . && git commit -m "Add NyanCat icon"
  7. Create a merge request

Publish a new version

  1. On master branch: git checkout master
  2. Pull the changes: git pull
  3. Update package.json version
  4. Commit the new version: git commit -am "vX.X.X"
  5. Run the deploy script using NPM: npm run deploy
  6. Tag the version: git tag vX.X.X
  7. Push your changes: git push && git push --tags