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

ne-build

v0.0.18

Published

🎩运营活动组项目构建工具

Downloads

23

Readme

🎩运营活动组项目构建工具

version commit GitHub new feature

命令

# node版本大于5.2
# 参数可在命令行输入,也可以输入命令后按交互提示输入

# 使用杭研npm时,请加上scope,如
$ npx @ne-web/ne-build h5 projectName

# 可在命令后直接输入项目名,如
$ npx @ne-web/ne-build h5 projectName
# 使用 NyPhile/h5_template 作为模板,创建projectName文件夹,并在projectName文件夹内创建项目。
# 不用重复输入项目名了。post、init命令同样增加该参数。
# 不填写projectName时与之前一样,在当前文件夹下创建项目

$ npx @ne-web/ne-build h5 projectName
# h5 zepto模板
# 使用 NyPhile/h5_template 作为模板创建项目,等同于 npx ne-build init -t NyPhile/h5_template

$ npx @ne-web/ne-build h5-scroll projectName
# h5-scroll 边滑边动模板

$ npx @ne-web/ne-build post projectName
# node渲染项目前端模板(以文章页为例)

$ npx @ne-web/ne-build pc projectName
# cms pc项目jQuery模板

$ npx @ne-web/ne-build pc-jq-multi projectName
# cms pc项目jQuery多页面模板

$ npx @ne-web/ne-build pc-vue projectName
# cms pc项目vue2框架模板

$ npx @ne-web/ne-build pc-vue3 projectName
# cms pc项目vue3框架模板

$ npx @ne-web/ne-build component-vue projectName
# 发布vue组件库npm包模板

$ npx @ne-web/ne-build init
# 创建项目,可同时输入参数,如 npx ne-build init -t NyPhile/h5_template

参数

以下参数均可交互式输入

-n or --projectName
# 项目名称,必须
# 用于替换模板项目中package.json的{name}

-c or --projectChannel
# 频道名称,必须
# 用于替换模板项目内上传路径中的频道路径

-d or --projectDesc
# 项目描述,可选
# 用于替换模板项目中package.json的{description}

-t or --templatePath
# 模板地址,必选
# 使用download-git-repo下载模板
# H5模板地址 NyPhile/h5_template
# 文章页模板地址 NyPhile/post_template

--username
# 上传工具账号,必须,即邮箱前缀

--password
# 上传工具密码,必须,即邮箱密码

工作流程

  1. 使用 npx 执行包命令
  2. 输入相应参数(projectNameprojectChannelprojectDesctemplatePathusernamepassword
  3. 使用 download-git-repo 在当前目录下载对应git仓库地址内容
  4. 替换 package.json 中的内容,{projectName} -> name{projectChannel} -> channel{projectDesc} -> description
  5. 替换 .ftppass 中的内容,{username} -> username{password} -> password(不包括pc模版)
  6. 替换 README.md 中的内容,# {projectName} -> # temp