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

nick-script

v0.1.53

Published

nick 的构建工具

Downloads

110

Readme

nick-script

构建工具

关于 css 打包

scss 和 css 文件的文件名最周以.module 结束,默认开启 module

例如  index.module.scss 将开启module,  index.module1.scss将不会开启

关于自定义配置

新建 n.config.js 文件并试用 webpack-merge 进行合并

开发环境

process.env.NODE_ENV==="development"

html 模板文件配置

如果项目根目录存在 index.html,那么将读取项目根目录的 index.html,否则将使用默认配置

postcoss

script 已经安装 postcss 只需要在根目录创建 postcss.config.js 配置规则postcss plugin

css 控制

自定义 css 控制请在 css:{css:[customConfig,customConfig]},将比较每个的 test(由于使用得是===来进行判断,所以 test 配置尽量使用正则表达式或者对象),并覆盖默认配置

babel 配置按照官网配置

browserslist 控制 请在 package.json 进行修改

ssr

  • proxy 默认转发所有的所有/api 网路请求到指定的地址

  • 数据管理 使用了 redux 来进行管理

  • 异步加载使用 LoadablePlugin

关于 ts

如果检测到项目根目录下有 tsconfig.json 文件,那么将启动 ts 的编译