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

razor-icon-library

v0.0.7

Published

---

Downloads

313

Readme

Razor icon Library


This Library is a collection of custom icons. The icon components are documented and showcased using Storybook, providing an interactive environment for testing and visualization.

Storybook

Hier are the components and how to use them in storybook

Install

  • Razor Shared library is published on node package manager npm
  • Repository: GitHub
npm i razor-icon-library

Getting Started

To use this library, you can browse through the icons listed in the sidebar. Each component has its own story where you can see usage examples and documentation.

In the Documentation page for each icon component you can find out how to use the component and copy the code.

Contributing

We welcome contributions to improve and extend the functionality of this library! Whether you're fixing bugs, adding new features, or enhancing documentation, your input is valuable.

How to Contribute

  • Clone the Repository: Clone the repository to your local machine
git clone https://github.com/Eng-FerasAhmad/razor-icon-library
  • Install Dependencies: install the project dependencies npm install

  • Create a Branch: Create a new branch for your feature or bug fix: git checkout -b feature/your-feature-name

  • Make Your Changes: Write your code, add tests if necessary, and ensure your changes follow the project’s linting and formatting rules

    • Follow the AirBnB JavaScript Style Guide with Prettier formatting.
    • Ensure your changes are covered by tests.
    • Avoid adding comments in the code (code should be self-explanatory).
  • Test Your Changes: Add new Test Run the test suite to ensure your changes don't break anything npm run test

  • Update Storybook: If you’re adding or modifying components, update the Storybook documentation. npm run storybook

  • Export new components and types: adding new components and types should also be exported, see index.ts

  • Commit Your Changes: Make sure your commit messages are descriptive. git commit -m "Add feature X or Fix issue Y"

  • Push to GitHub: Push your branch to GitHub git push origin feature/your-feature-name

  • Open a Pull Request: Go to the repository on GitHub and open a pull request. Provide a clear and detailed description of what your change does and why it’s necessary.

  • Pipelines: Pipelines on GitHub will start automatic after create pull Request. Make sure the pipelines are finished successfully.

  • Merge info Main: After approval you can merge the changes to main.

  • Publish to npm: after merge to main you can now publish the changes to npm whit new version:

    • locally run npm run build
    • npm version xx.xx (check the last version)
    • npm publish
    • watch the cli you will be asked to click 'enter' form your keyboard
    • the browser page will be open, you should add the 2-factor auth from you authenticator.
  • Deploy & Publish storybook: new changes and fix bugs should also be published on storybook

    • npm run deploy-storybook
    • this script will deploy storybook to GitHub pages.

Local development

To test your changes locally you can check user stoy locally with this script:

npm run storybook

Used technology

  • React
  • Vite
  • Typescript
  • Eslint

Components

The library still in development phase, so any new icon components and feature of this components will be added as soon as it is ready:

Card

import { AccountSymbol } from 'razor-icon-library';

export default function Example() {
    return (
        <div>
            <AccountSymbol size={36} color={green} />
        </div>
    );
}

License

MIT