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 🙏

© 2025 – Pkg Stats / Ryan Hefner

style-template

v0.0.3

Published

一些基础的样式模板

Downloads

2

Readme

style-template

一些基础的样式模板

为什么会有style-template

我们在日常开发中总会做一些重复的工作,比如我们的前端工程师们再写css的时候,可能就会遇到经常写像文本溢出隐藏、布局、边距等等一些基础的样式类,为了多点时间刷知乎,我们是不是可以把这些经常要用的基础样式类封装起来,在要用的项目组直接引入即可。因此就有了style-template。

为什么要使用style-template

1、不用再写基础的样式类,style-template已经帮我们写好了;
2、可以统一我们各个应用项目的基础样式,方便管理维护;

如何使用

  • 安装
# install style-template
npm install style-template
  • 以less的方式引入
@import '~style-template/lib/less/index.less';
  • 以css的方式引入
@import '~style-template/lib/less/index.css';

模板片段提示

如果你用的开发工具正好是vscode,那么来吧,点我👀