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

@aliretail/basemember

v1.3.0-alpha.3

Published

CITRUS会员中心

Readme

基线会员 base-member-sdk


目录结构说明

1. 根目录说明

.
├── src
   ├── componets         -- 页面依赖模块集合
   ├── pages             -- 页面集合
   ├── app.js            -- 入口文件、处理应用生命周期
   ├── app.json          -- 页面路由配置、小程序配置
   ├── global.css        -- 全局样式文件(仅SDK中生效,注入壳工程后以壳工程的全局样式覆盖之)
   └── projectConfig.js  -- 工程配置文件(仅SDK中生效,注入壳工程后以壳工程的工程配置覆盖之)

2. pages 目录说明

页面命名以 member_ 开头,单词以 _ 进行分割,不允许在页面命名中出现任何大写字母及数字

.pages
├── member_detail
│  ├── ...
├── member_list
│   ├── ...
├── member_select_type
│   ├── ...
└── member_service
    ├── components.js  -- 组件依赖
    ├── index.jsx      -- Page 配置、配置奥创请求相关内容
    └── mock-datas     -- 数据mock(建议:联调通过后以真实、可读、具有代表性的数据覆盖)
        └── default.js

3. components 目录说明

模块根据页面进行分组,多个页面共同使用到的模块以 member_common_ 开头,单词以 _ 进行分割,仅自身页面用到的模块以自身页面名开头(如 member_list_member_detail_),不允许在模块目录命名中出现任何大写字母及数字

.components
├── member_common_bottom_button
├── member_common_float_tips
├── member_common_item
├── member_common_page_root
├── member_detail_address
├── member_detail_amount
├── member_detail_button
├── member_detail_cancel_button
├── member_detail_delivery
├── member_detail_info
├── member_detail_step
├── member_detail_stream
├── member_detail_talk_history
├── member_list_container
├── member_list_item
├── member_list_nodata
├── member_select_type_operator
├── member_service_amount
├── member_service_block
├── member_service_buttom_text
├── member_service_delivery
├── member_service_evidence
├── member_service_memo
└── member_service_reason

迭代说明

  1. 明确需求是否输入交易逆向 SDK
  2. master拉开发分支 daily/feature_20210530_xxxx, 通过 xxxx 一两个单词概括本次需求
  3. 需求发布后需及时合并回 master 分支
  4. demand.md中关联需求发布分支、需求 PRD 文档、需求设计稿等,并辅以简单说明方便后人踩坑

开发说明

git clone [email protected]:halo/debug/mall-member-sdk.git

cnpm install

npm start

npm build

// 发包
npm publish
若 npm publish 无权限
npm i nrm -g

nrm add cz http://c.public.registry.zacz.cn/

nrm ls
→ cz --------- http://c.public.registry.zacz.cn/

nrm use cz

npm i

npm login

npm publish