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

jtfw-page-init

v0.1.20

Published

项目用于jiazheng多页应用,帮助快速初始化页面。 目前支持以下4个项目 ``` jiazheng-aunt-h5 jiazheng-business jiazheng-custom jiazheng-union ```

Readme

JTFW-PAGE-INIT

项目用于jiazheng多页应用,帮助快速初始化页面。 目前支持以下4个项目

jiazheng-aunt-h5
jiazheng-business
jiazheng-custom
jiazheng-union

安装

npm i jtfw-page-init -D

使用

npx jtfw-page-init init <页面名称>

注意

项目初始化差异

其中jiazheng-business使用流程会与其他有些差异,因为项目config/getPages.js存在通用页面我的页面下的子页四方SaaS&劳动者运营三方SaaS四种情况。 所以在输入完项目名称后,会需要手动选择要将页面插入到哪个项目中, 如下:

business 初始化差异

其中jiazheng-custom会将生成的xxx.htmltemplate文件存放到template/cfe路径下,目前存在template/afetemplate/cfe两个目录,考虑常用性,先都生成到template/cfe下。

流程演示(以jiazheng-aunt-h5为例)

运行 & 输入

输入内容,包含页面中英文描述,英文用于生成文件夹、文件名称。中文用于生成备注、及页面title。

运行 & 输入

生成内容

内容生成概述

新生成三个文件:

src/pages/<页面名称>/App.vue
src/pages/<页面名称>/index.js
template/afe/<页面名称>.html

追加内容两个文件:

config/getPages.js
src/configs/page.js

image.png

内容生成详述

src/pages/<页面名称>/App.vue

image.png

src/pages/<页面名称>/index.js

image.png

template/afe/<页面名称>.html

image.png

config/getPages.js

image.png

src/configs/page.js

image.png