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 🙏

© 2026 – Pkg Stats / Ryan Hefner

nice-node

v1.2.1

Published

## Status

Downloads

47

Readme

Nice Node

Status

npm version Build Status Coverage Status Dependency Status

安装

最好在安装前申请好 appcode ,因为 appcode 会写入到某些文件中,后续手动修改可能会出现遗漏,可能影响发布。

使用 npx 启动创建新项目的手脚架工具:

npx create-nice-node

命令

启动本地服务

```sh
npm start
```

编译工程

```sh
# 编译
npm run build

# 编译并预览编译结果
npm run start:prod
```

代码检查

```sh
# 检查并返回错误结果
npm run lint
# 检查并尝试修复
npm run lint:fix
```

测试

```sh
npm test

# 查看代码覆盖率
npm run cover
```

特点

  • [x] 基于 dotenv 的配置系统
  • [x] 区分环境的配置文件
  • [x] 内置 eslint
  • [x] 内置 husky
  • [x] 使用统一的 eslint 规则
  • [x] 搭建新项目的手脚架工具,能一键创建项目
  • [x] 提供基础的 tsconfig.json
  • [x] 支持记录访问日志
  • [x] 内置日志函数
  • [x] 支持打点监控(watcher)
  • [x] 结合 PM2 ,提供基础的 ecosystem.config.js
  • [x] 可配置的代理转发
  • [x] 支持静态文件服务(可选)
  • [x] 支持 pug 模版(可选)
  • [x] 自动加载路由功能(可选)
  • [x] 支持 GraphQL(可选)
  • [x] .syncignore
  • [x] 集成 portal 发布
    • [x] deploy_scripts
    • [x] 定时任务同步机制
    • 代码覆盖率
  • [ ] qconfig
  • [ ] ssr
  • [ ] 兼容 windows 系统
  • [x] nicenode.env 参数检查
  • 找 cm 将发布参数设置打包成nice-node类型,内置到portal系统
  • requireAllRoutes 封装成中间件
  • 内置 typescript@^3.7.5, 支持可选链操作
  • [ ] unit test
    • [ ] bin
    • [ ] http-proxy 对 post 的模拟没写用例

文档目录

新手入门

API

命令行

中间件

公用模块

todo

  • [ ] deploy_scripts 和 crontab 使用文件软连接