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

@roku-ui/icons

v0.0.2

Published

这是一个 React 使用的图标库。利用了 [iconify]( https://iconify.design/) 的图标数据。你可以在 [icones](https://icones.js.org/) 浏览所有可用的图标。感谢这些库的作者的收集,让图标选择变得自由。

Downloads

7

Readme

ROKU-ICONS

这是一个 React 使用的图标库。利用了 iconify 的图标数据。你可以在 icones 浏览所有可用的图标。感谢这些库的作者的收集,让图标选择变得自由。

动机

目前 UnoCSS 和 Iconify 都已提供了图标解决方案,他们的优势是通用,不依赖于任何前端框架。但是如果我已经锁定了 React,这一优势便不复存在了。 而且,我们并没有完全摆脱框架锁定——比如 UnoCSS 虽然是框架无关的,但它的图标方案锁死了我们必须使用 UnoCSS。

此外,这些库需要拼接字符串来寻找图标。这样的方式其实不够优雅。我们需要打开一个图标库网页去获得字符串(或是添加一个IDE插件,又是一种锁定),而无法获得代码智能提示。

最后,虽然许多图标库也维护了 React 组件库,但他们的 API 各不相同,默认的设置(如图标大小)也不一致。

而这个库的优势是,我们直接将图标数据转换为 React 组件,这样就可以使用 IDE 的代码智能提示了。同时,所有的库具备相同的 API 和默认设置,让我们可以无缝在各种图标库之间切换。

安装

npm install @roku/icons-<prefix>

其中 <prefix> 是图标库的前缀,比如 mdifa、等。